3 * Wolfgang Denk Engineering, <wd@denx.de>
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 #if defined(CONFIG_64BIT)
25 #define PTR_COUNT_SHIFT 3
27 #define PTR_COUNT_SHIFT 2
43 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
52 _gp = ALIGN(16) + 0x7ff0;
58 num_got_entries = SIZEOF(.got) >> PTR_COUNT_SHIFT;
67 KEEP(*(SORT(.u_boot_list*)));
81 * Workaround for a binutils feature (or bug?).
83 * The GNU ld from binutils puts the dynamic relocation
84 * entries into the .rel.dyn section. Sometimes it
85 * allocates more dynamic relocation entries than it needs
86 * and the unused slots are set to R_MIPS_NONE entries.
88 * However the size of the .rel.dyn section in the ELF
89 * section header does not cover the unused entries, so
90 * objcopy removes those during stripping.
92 * Create a small section here to avoid that.
101 .bss __rel_dyn_start (OVERLAY) : {