PR ld/11458
authorHans-Peter Nilsson <hp@axis.com>
Wed, 31 Mar 2010 03:38:26 +0000 (03:38 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Wed, 31 Mar 2010 03:38:26 +0000 (03:38 +0000)
commitbfbff9eb7dbc37b6d8f4220212ee1e30fac6297b
tree025d1d1b2cbca2a7b1076e6686481c5e1b15f0a1
parent86ffb506121261d997f7c0c05b76b7ded8231b86
PR ld/11458
* elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
assert of empty pcrel_relocs_copied on the direct symbol.  Instead
of moving the list from the indirect symbol to the direct symbol,
merge into any existing list.
(cris_elf_check_relocs): Store the original section in the
pcrel_relocs_copied list, not the relocation section.
(elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
the relocation section, for reducing its size.  Change the
BFD_ASSERT into a check for the section being read-only, and only
emit warnings and TEXTREL marker when there's an entry for a
read-only section.
bfd/ChangeLog
bfd/elf32-cris.c