X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2FRRvision%2Fu-boot.lds;h=838537375b3fefd55c8cb2359787b2553282d3fb;hb=afe0414b2e7cdd2d0536b2a45550758c62ee31e6;hp=5232e20680cbead0685134d1c762ed8032400b25;hpb=52eb2c79110151b9017a0829c4d44ee7b8e2ca04;p=u-boot diff --git a/board/RRvision/u-boot.lds b/board/RRvision/u-boot.lds index 5232e20680..838537375b 100644 --- a/board/RRvision/u-boot.lds +++ b/board/RRvision/u-boot.lds @@ -52,13 +52,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 : @@ -95,6 +96,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end__ = . ; PROVIDE (end = .); }