OSDN Git Service

* elf32-cris.c (struct elf_cris_pcrel_relocs_copied): New member
authorHans-Peter Nilsson <hp@axis.com>
Mon, 15 Dec 2008 02:32:22 +0000 (02:32 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 15 Dec 2008 02:32:22 +0000 (02:32 +0000)
commit76f8d533375a3980109b6221a3c97f2c78fe2823
tree5d823c0b27fbc34f620839ce97f91e809da71b98
parent04c8582d3a138d480d9ad580d995172babce2ad4
* elf32-cris.c (struct elf_cris_pcrel_relocs_copied): New member
r_type.  Fix formatting.
(cris_elf_relocate_section) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
<R_CRIS_32_PCREL>: Also break early if the symbol doesn't get
emitted as a dynamic one.
(cris_elf_check_relocs) <R_CRIS_7, R_CRIS_16, R_CRIS_32>: Fork
from PCREL relocs code and simplify; don't fall through.
<R_CRIS_8_PCREL, R_CRIS_16_PCREL, R_CRIS_32_PCREL>: Simplify for
pcrel only.  For non-local or overridable symbols in a DSO, always
keep count of relocs, not just when -Bsymbolic.  Don't emit
message nor mark as TEXTREL here.
(elf_cris_discard_excess_dso_dynamics): Emit warning and mark as
TEXTREL here, if there are nondiscarded pcrel relocs.
bfd/ChangeLog
bfd/elf32-cris.c