X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Femk%2Ftop860%2Fu-boot.lds;h=fb066486633a8b184ccd5a503ee19a64169e5d43;hb=f9a78b8d4f1e9b42eb0563029a22fd6c34390088;hp=ae1a791b03abd8d22bd9aba2b621481f275ffe24;hpb=52eb2c79110151b9017a0829c4d44ee7b8e2ca04;p=oweals%2Fu-boot.git diff --git a/board/emk/top860/u-boot.lds b/board/emk/top860/u-boot.lds index ae1a791b03..fb06648663 100644 --- a/board/emk/top860/u-boot.lds +++ b/board/emk/top860/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 : @@ -91,6 +92,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end__ = . ; PROVIDE (end = .); }