X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fquantum%2Fu-boot.lds;h=d0b60cf7c1079f4642fb63a032b0e40d9f9d34b3;hb=03331853528ad2b70bc0dca06e2d4354ec899c4f;hp=fbd901a3c309020d3432a1c19e8fda6d3cb96b67;hpb=ac8983bcba75576c50307b5e8dc8fb848740ee61;p=u-boot diff --git a/board/quantum/u-boot.lds b/board/quantum/u-boot.lds index fbd901a3c3..d0b60cf7c1 100644 --- a/board/quantum/u-boot.lds +++ b/board/quantum/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 : @@ -90,6 +91,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end__ = . ; PROVIDE (end = .); }