diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2020-03-04 14:54:27 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2020-03-05 19:48:08 -0800 |
commit | e15a8da9c71336b06cb5f2706c3f6b7e6ddd95a3 (patch) | |
tree | ee18a44444da1ab1944c7c309050af5622e97e6d /bfd/elf32-xtensa.c | |
parent | a9b90127e864d0cac1b7b803cb2af4eab01dbdab (diff) | |
download | gdb-e15a8da9c71336b06cb5f2706c3f6b7e6ddd95a3.zip gdb-e15a8da9c71336b06cb5f2706c3f6b7e6ddd95a3.tar.gz gdb-e15a8da9c71336b06cb5f2706c3f6b7e6ddd95a3.tar.bz2 |
bfd: xtensa: fix PR ld/25630
bfd/
2020-03-05 Max Filippov <jcmvbkbc@gmail.com>
* elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic
relocation sections for any removed reference to a dynamic symbol.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r-- | bfd/elf32-xtensa.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 5e31e73..473a9d7 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -10148,10 +10148,9 @@ shrink_dynamic_reloc_sections (struct bfd_link_info *info, if ((r_type == R_XTENSA_32 || r_type == R_XTENSA_PLT) && (input_section->flags & SEC_ALLOC) != 0 - && (dynamic_symbol || bfd_link_pic (info)) - && (!h || h->root.type != bfd_link_hash_undefweak - || (dynamic_symbol - && (bfd_link_dll (info) || info->export_dynamic)))) + && (dynamic_symbol + || (bfd_link_pic (info) + && (!h || h->root.type != bfd_link_hash_undefweak)))) { asection *srel; bfd_boolean is_plt = FALSE; |