X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fhermes%2Fu-boot.lds;h=8e5896375931dcc690caa8b1fa46647dac0def4b;hb=45a4d4d35ab64991e47807563b629e7624e40fd8;hp=456140df9f0d193b66bbf829f24d31114e5eb2f7;hpb=52eb2c79110151b9017a0829c4d44ee7b8e2ca04;p=u-boot diff --git a/board/hermes/u-boot.lds b/board/hermes/u-boot.lds index 456140df9f..8e58963759 100644 --- a/board/hermes/u-boot.lds +++ b/board/hermes/u-boot.lds @@ -53,13 +53,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 : @@ -71,9 +72,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*))); + } . = .; @@ -96,6 +99,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end = . ; PROVIDE (end = .); }