Several fixes related to ARC PIE support.
authorCupertino Miranda <cmiranda@synopsys.com>
Wed, 13 Jul 2016 16:04:20 +0000 (18:04 +0200)
committerCupertino Miranda <cmiranda@synopsys.com>
Fri, 26 Aug 2016 10:09:17 +0000 (12:09 +0200)
commit8a36df4dcfa3cb89779e1a3eaca8067426e9cad6
tree160ca14c5636a8cc87f0bb352d1e5a98d2c71c34
parent4dd72ffdfe254fec30fd5eab0c5fd4445df73529
Several fixes related to ARC PIE support.

Fixed conditions related to dynamic relocs relative offset patching.
Added arc_link_hash_table to be able to always generate and track
.rela.bss section.

bfd/ChangeLog:

Cupertino Miranda  <cmiranda@synopsys.com>

* elf-bfd.h: Added ARC_ELF_DATA to enum elf_target_id.
* elf32-arc.c (struct elf_arc_link_hash_entry): Added.
(struct elf_arc_link_hash_table): Likewise.
(elf_arc_link_hash_newfunc): Likewise.
(elf_arc_link_hash_table_free): Likewise.
(arc_elf_link_hash_table_create): Likewise.
(elf_arc_relocate_section): Fixed conditions related to dynamic
(elf_arc_check_relocs): Likewise.
(arc_elf_create_dynamic_sections): Added
(elf_arc_adjust_dynamic_symbol): Changed access to .rela.bss to be done
through the hash table.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf32-arc.c