aboutsummaryrefslogtreecommitdiff
path: root/bfd/cpu-m32c.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-11-20 21:35:09 +1030
committerAlan Modra <amodra@gmail.com>2017-11-21 00:09:07 +1030
commit28e07a0510ca896311014cddf125aedfd7a8cd52 (patch)
tree3def5b5fa879960c313f57db5098fd989920455b /bfd/cpu-m32c.c
parent578290ecafb83e93f0ac695df586b65dac5e8c5d (diff)
downloadgdb-28e07a0510ca896311014cddf125aedfd7a8cd52.zip
gdb-28e07a0510ca896311014cddf125aedfd7a8cd52.tar.gz
gdb-28e07a0510ca896311014cddf125aedfd7a8cd52.tar.bz2
PR22451, strip no longer works on older object files
Setting SHF_GROUP unconditionally on rel/rela sections associated with SHF_GROUP sections fails badly with objcopy/strip and ld -r if the input file SHT_GROUP section didn't specify the rel/rela sections. This patch rearranges where SHF_GROUP is set for rel/rela sections. PR 22451 PR 22460 * elf.c (_bfd_elf_init_reloc_shdr): Delete "sec_hdr" parameter and leave rel_hdr->sh_flags zero. Update calls. (bfd_elf_set_group_contents): Check input rel/rela SHF_GROUP flag when !gas before adding rel/rela section to group. Set output rel/rela SHF_GROUP flags.
Diffstat (limited to 'bfd/cpu-m32c.c')
0 files changed, 0 insertions, 0 deletions