X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fsandpoint%2Fu-boot.lds;h=e382fd1a1e667de44ba416e0f03337d6de51da74;hb=17659d7de9e4905f8d06966c2354c87cdeb8b703;hp=59c86278d98e3990312d1635a4e2e6f50da693f7;hpb=de550d6b34140f1fa9e4e2f082de5ee7009dceb5;p=oweals%2Fu-boot.git diff --git a/board/sandpoint/u-boot.lds b/board/sandpoint/u-boot.lds index 59c86278d9..e382fd1a1e 100644 --- a/board/sandpoint/u-boot.lds +++ b/board/sandpoint/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 : @@ -92,6 +93,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end__ = . ; PROVIDE (end = .); }