* elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
authorHans-Peter Nilsson <hp@axis.com>
Tue, 9 Jul 2002 03:49:27 +0000 (03:49 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 9 Jul 2002 03:49:27 +0000 (03:49 +0000)
commit0a4787a0816422095c3e87c62353749a8e20f6fa
tree6685d5bc5aa6eb60b7c11ca71d188a1bd218c322
parent57a4c584135c2e34f82de89bf58ba76d20010ad5
* elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
NULL sym_hashes to just before use.
<case R_CRIS_32_GOTREL>: In test for local symbol, accept also
symbol with non-default visibility.
<case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
<case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
Ditto.
(cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
symbol with non-default visibility.
(cris_elf_check_relocs): At tests for local symbol before
increasing h->plt.refcount, also check for non-default
visibility.  Ditto when checking for local symbol to eliminate
pc-relative runtime relocs.
bfd/ChangeLog
bfd/elf32-cris.c