Adjust the value of _GLOBAL_OFFSET_TABLE_ for got bigger than 0x8000
authorWalter Lee <walt@tilera.com>
Wed, 3 Oct 2012 00:58:03 +0000 (00:58 +0000)
committerWalter Lee <walt@tilera.com>
Wed, 3 Oct 2012 00:58:03 +0000 (00:58 +0000)
commite867b64722d18cb3672b4a07ee2685d7018c220b
tree0649c5cdf406946b7272dce3593c970ecb4ceb2f
parenta330419054a2ec6f88c132182c673d26882ea3c9
Adjust the value of _GLOBAL_OFFSET_TABLE_ for got bigger than 0x8000
bytes, so that the 16 bit relocations have a greater chance of
working.
* tilegx.cc (Target_tilegx::do_finalize_sections): Adjust
global_offset_table_ value for larget got.
(Target_tilegx::Relocate::relocate): Handle adjusted got value.
gold/ChangeLog
gold/tilegx.cc