]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
* 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)
commit0d08de41ae5b90d05788601b3daa787ef07345a3
tree26fac6304a2926f850a390532f39ba6faf0eef9f
parentb2e254f9704b90a154fe9259a1ebdf43dd21cf8f
* 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