OSDN Git Service

* 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)
commit04cd66b720cda02cfcb3a33bc020f7f84879d69a
treeb08cf0357e4a3c826b3bdfb581bfcb61f6aff166
parent335a4904609b14da6acb7b0111b5e1d9f8529254
* 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