summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/bfd/elf-s390-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/bfd/elf-s390-common.c')
-rw-r--r--binutils-2.25/bfd/elf-s390-common.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/binutils-2.25/bfd/elf-s390-common.c b/binutils-2.25/bfd/elf-s390-common.c
index 691f7511..c74883cd 100644
--- a/binutils-2.25/bfd/elf-s390-common.c
+++ b/binutils-2.25/bfd/elf-s390-common.c
@@ -1,6 +1,5 @@
/* IBM S/390-specific support for ELF 32 and 64 bit functions
- Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
- 2011, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2000-2014 Free Software Foundation, Inc.
Contributed by Andreas Krebbel.
This file is part of BFD, the Binary File Descriptor library.
@@ -235,8 +234,10 @@ elf_s390_add_symbol_hook (bfd *abfd,
asection **secp ATTRIBUTE_UNUSED,
bfd_vma *valp ATTRIBUTE_UNUSED)
{
- if ((abfd->flags & DYNAMIC) == 0
- && ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC)
+ if ((ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC
+ || ELF_ST_BIND (sym->st_info) == STB_GNU_UNIQUE)
+ && (abfd->flags & DYNAMIC) == 0
+ && bfd_get_flavour (info->output_bfd) == bfd_target_elf_flavour)
elf_tdata (info->output_bfd)->has_gnu_symbols = TRUE;
return TRUE;