| * Wolfgang Denk Engineering, <wd@denx.de> |
| * SPDX-License-Identifier: GPL-2.0+ |
| #if defined(CONFIG_64BIT) |
| #define PTR_COUNT_SHIFT 3 |
| #define PTR_COUNT_SHIFT 2 |
| *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
| _gp = ALIGN(16) + 0x7ff0; |
| num_got_entries = SIZEOF(.got) >> PTR_COUNT_SHIFT; |
| KEEP(*(SORT(.u_boot_list*))); |
| * Workaround for a binutils feature (or bug?). |
| * The GNU ld from binutils puts the dynamic relocation |
| * entries into the .rel.dyn section. Sometimes it |
| * allocates more dynamic relocation entries than it needs |
| * and the unused slots are set to R_MIPS_NONE entries. |
| * However the size of the .rel.dyn section in the ELF |
| * section header does not cover the unused entries, so |
| * objcopy removes those during stripping. |
| * Create a small section here to avoid that. |
| .bss __rel_dyn_start (OVERLAY) : { |