X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=board%2Fevb64260%2Fu-boot.lds;h=2d031efc4e93fde4868428ff775c7fba6f65a9cb;hb=5289e83a8ca8c4a6613d2d019bad330816dbc2d4;hp=0648f62feb8be65ba6b6048ee5d0d38062f7a103;hpb=44c6e6591cb451ae606f8bde71dd5fb7b4002544;p=u-boot diff --git a/board/evb64260/u-boot.lds b/board/evb64260/u-boot.lds index 0648f62feb..2d031efc4e 100644 --- a/board/evb64260/u-boot.lds +++ b/board/evb64260/u-boot.lds @@ -51,13 +51,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 :