X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Ffads%2Fu-boot.lds;h=0e2206c222c633e08a0378c64bd691f87cdca540;hb=57ca432fb9f59cea48d8cde1dc1d5cc2f80993c7;hp=c1ad14120d93665c5c689feb8eadfaf2ccb03757;hpb=ac8983bcba75576c50307b5e8dc8fb848740ee61;p=u-boot diff --git a/board/fads/u-boot.lds b/board/fads/u-boot.lds index c1ad14120d..0e2206c222 100644 --- a/board/fads/u-boot.lds +++ b/board/fads/u-boot.lds @@ -49,13 +49,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 : @@ -67,9 +68,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*))); + } . = .; @@ -92,7 +95,7 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end = . ; PROVIDE (end = .); } ENTRY(_start)