Generic ELF target group signature symbol
authorAlan Modra <amodra@gmail.com>
Mon, 27 May 2019 00:08:42 +0000 (09:38 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 27 May 2019 04:26:28 +0000 (13:56 +0930)
commit3d7d6a6ff4678685f86976f08ab4c9c639e262e1
treed3b5ce6d4a5e6502170e32affe05d38abbb26049
parentd5b7ce35a19350969b609c56a8bfff17f91cca20
Generic ELF target group signature symbol

Even though the generic ELF target doesn't handle groups correctly,
this helps avoid a segfault in bfd_elf_set_group_contents seen on
d30v-elf, dlx-elf, pj-elf, and xgate-elf when linking the pr22836
testcase.

PR 24596
bfd/
* linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
ld/
* emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
BFS_KEEP on group signature symbol.
bfd/ChangeLog
bfd/linker.c
ld/ChangeLog
ld/emultempl/genelf.em