aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-10-08 07:50:19 +0000
committerAlan Modra <amodra@gmail.com>2011-10-08 07:50:19 +0000
commitc3df8c14822028ab319894b4c02c519073b62dba (patch)
tree96625c7de65e7ef50eed80718f67064b73198a50 /bfd/elflink.c
parent99df68896e29a4ed3c6de003041f0a2072890b50 (diff)
downloadgdb-c3df8c14822028ab319894b4c02c519073b62dba.zip
gdb-c3df8c14822028ab319894b4c02c519073b62dba.tar.gz
gdb-c3df8c14822028ab319894b4c02c519073b62dba.tar.bz2
PR ld/13229
PR ld/13244 * elflink.c (elf_link_add_object_symbols): Don't make IR symbols dynamic.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 3ae4350..358ada8c 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4376,11 +4376,13 @@ error_free_dyn:
dynsym = TRUE;
}
+ /* We don't want to make debug symbol dynamic. */
if (definition && (sec->flags & SEC_DEBUGGING) && !info->relocatable)
- {
- /* We don't want to make debug symbol dynamic. */
- dynsym = FALSE;
- }
+ dynsym = FALSE;
+
+ /* Nor should we make plugin symbols dynamic. */
+ if ((abfd->flags & BFD_PLUGIN) != 0)
+ dynsym = FALSE;
if (definition)
h->target_internal = isym->st_target_internal;