Correct Nios II GOT pointer initialization.
authorSandra Loosemore <sandra@codesourcery.com>
Sun, 2 Feb 2014 18:57:52 +0000 (10:57 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Sun, 2 Feb 2014 18:57:52 +0000 (10:57 -0800)
commit82e9153868751875375955cf3de10f6e008ec6ae
treeef42d2a657195899a32e427e3496097179fe02da
parent13075d049d492477dfbf795c305adbab5abb6d81
Correct Nios II GOT pointer initialization.

2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>

bfd/
* elf32-nios2.c (struct elf32_nios2_link_hash_table): Add
h_gp_got field.
(nios2_elf32_relocate_section): Use got_base to adjust
GOT-pointer-relative relocations relative to _gp_got.
(create_got_section): Create _gp_got symbol.
(nios2_elf32_finish_dynamic_symbol): Make _gp_got absolute.
(nios2_elf32_size_dynamic_sections): Set _gp_got offset.
bfd/ChangeLog
bfd/elf32-nios2.c