X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Frsdproto%2Fu-boot.lds;h=240b9363c8db14e4b6dad2ce55988d18e2bbc05e;hb=8dc16cf9dd6196d99969d12741df186a61a2f9a3;hp=7763c7fed7b09d5e2ecfbab7fe128a3aa963a5b5;hpb=500fbae2043532275e09a8666d837d052c9bad9a;p=oweals%2Fu-boot.git diff --git a/board/rsdproto/u-boot.lds b/board/rsdproto/u-boot.lds index 7763c7fed7..240b9363c8 100644 --- a/board/rsdproto/u-boot.lds +++ b/board/rsdproto/u-boot.lds @@ -74,13 +74,14 @@ SECTIONS PROVIDE (erotext = .); .reloc : { - *(.got) _GOT2_TABLE_ = .; - *(.got2) + KEEP(*(.got2)) + KEEP(*(.got)) + PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); _FIXUP_TABLE_ = .; - *(.fixup) + KEEP(*(.fixup)) } - __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; + __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; __fixup_entries = (. - _FIXUP_TABLE_)>>2; .data : @@ -96,9 +97,11 @@ SECTIONS PROVIDE (edata = .); . = .; - __u_boot_cmd_start = .; - .u_boot_cmd : { *(.u_boot_cmd) } - __u_boot_cmd_end = .; + + . = ALIGN(4); + .u_boot_list : { + KEEP(*(SORT(.u_boot_list*))); + } . = .; @@ -122,6 +125,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end = . ; PROVIDE (end = .); }