bfd: or1k: avoid emitting R_OR1K_INSN_REL_26 in shared libs
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Wed, 13 Aug 2014 20:17:50 +0000 (23:17 +0300)
committerStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Wed, 13 Aug 2014 20:32:51 +0000 (23:32 +0300)
commitffccb7afb54cf09db1013f941e8dfc5127b01876
tree6fee293bf8c41451f796bdbbbba4591a88f79210
parent703ec4e8d0c1daac6033e14170c0ddd28c455c0a
bfd: or1k: avoid emitting R_OR1K_INSN_REL_26 in shared libs

This fixes a bug where R_OR1K_INSN_REL_26 relocations would be emitted
into shared libraries even when the referenced symbol was hidden
or the symbol was contained in the same .so which had been
linked with -Bsymbolic.

bfd/
* elf32-or1k.c (or1k_elf_relocate_section, or1k_elf_check_relocs,
allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL
and SYMBOLIC_BIND.
bfd/ChangeLog
bfd/elf32-or1k.c