X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=board%2Fnetphone%2Fu-boot.lds;h=03891e937f1123349d8576860f1aa9bc2d6c37df;hb=b9944a77f909e343f930dcbcc597224e65dfcca9;hp=684ab81c4a2a1d4144f775fc6f59448634a5b467;hpb=ac8983bcba75576c50307b5e8dc8fb848740ee61;p=oweals%2Fu-boot.git diff --git a/board/netphone/u-boot.lds b/board/netphone/u-boot.lds index 684ab81c4a..03891e937f 100644 --- a/board/netphone/u-boot.lds +++ b/board/netphone/u-boot.lds @@ -47,13 +47,14 @@ SECTIONS PROVIDE (erotext = .); .reloc : { - KEEP(*(.got)) _GOT2_TABLE_ = .; KEEP(*(.got2)) + KEEP(*(.got)) + PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); _FIXUP_TABLE_ = .; KEEP(*(.fixup)) } - __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; + __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; __fixup_entries = (. - _FIXUP_TABLE_)>>2; .data : @@ -65,9 +66,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*))); + } . = .; @@ -90,6 +93,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end = . ; PROVIDE (end = .); }