diff options
Diffstat (limited to 'board/sc3/u-boot.lds')
-rw-r--r-- | board/sc3/u-boot.lds | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/sc3/u-boot.lds b/board/sc3/u-boot.lds index 2cbbca50e5..4db46cacf2 100644 --- a/board/sc3/u-boot.lds +++ b/board/sc3/u-boot.lds @@ -96,13 +96,14 @@ SECTIONS PROVIDE (erotext = .); .reloc : { - *(.got) _GOT2_TABLE_ = .; *(.got2) + *(.got) + PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); _FIXUP_TABLE_ = .; *(.fixup) } - __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; + __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; __fixup_entries = (. - _FIXUP_TABLE_)>>2; .data : |