X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Frbc823%2Fu-boot.lds;h=d943fb6de73860b15070fcfa27b593e0f7770e39;hb=d7f71414f4296fbea578e80ada1bf2435ed0a2cd;hp=7b790ab9fd570d961ea0a5caf6eadcf4782e388a;hpb=c04bf5e9a45d7335681352faa125193258f8e976;p=u-boot diff --git a/board/rbc823/u-boot.lds b/board/rbc823/u-boot.lds index 7b790ab9fd..d943fb6de7 100644 --- a/board/rbc823/u-boot.lds +++ b/board/rbc823/u-boot.lds @@ -58,13 +58,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 :