diff options
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elflink.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9fcc6fc..0178d97 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2018-10-17 Alan Modra <amodra@gmail.com> + + PR 23653 + * elflink.c (_bfd_elf_link_create_dynstrtab): Match elf_object_id + too when choosing dynobj. + 2018-10-16 Alan Modra <amodra@gmail.com> * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Simplify diff --git a/bfd/elflink.c b/bfd/elflink.c index 78d8c54..c3876cb 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -223,6 +223,7 @@ _bfd_elf_link_create_dynstrtab (bfd *abfd, struct bfd_link_info *info) if ((ibfd->flags & (DYNAMIC | BFD_LINKER_CREATED | BFD_PLUGIN)) == 0 && bfd_get_flavour (ibfd) == bfd_target_elf_flavour + && elf_object_id (ibfd) == elf_hash_table_id (hash_table) && !((s = ibfd->sections) != NULL && s->sec_info_type == SEC_INFO_TYPE_JUST_SYMS)) { |