aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index a7e12f8..43a071c 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -4339,6 +4339,7 @@ elf_link_add_object_symbols (abfd, info)
&& definition
&& (flags & BSF_WEAK) != 0
&& ELF_ST_TYPE (sym.st_info) != STT_FUNC
+ && info->hash->creator->flavour == bfd_target_elf_flavour
&& (*sym_hash)->weakdef == NULL)
{
/* Keep a list of all weak defined non function symbols from