summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/bfd/elf64-sparc.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-11-15 20:52:56 +0000
committerobrien <obrien@FreeBSD.org>2000-11-15 20:52:56 +0000
commit58a790571531103aac1af77ce3ede9485ee1798d (patch)
tree0c15e6d73e6b72e4827681b4de1c8e83e2c90f5d /contrib/binutils/bfd/elf64-sparc.c
parent7c4d7cfec1e42798f40e828b4f7a6350815ad9b7 (diff)
downloadFreeBSD-src-58a790571531103aac1af77ce3ede9485ee1798d.zip
FreeBSD-src-58a790571531103aac1af77ce3ede9485ee1798d.tar.gz
Import of GNU Binutils version 2.10.1.
Believe it or not, this is heavily stripped down.
Diffstat (limited to 'contrib/binutils/bfd/elf64-sparc.c')
-rw-r--r--contrib/binutils/bfd/elf64-sparc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/binutils/bfd/elf64-sparc.c b/contrib/binutils/bfd/elf64-sparc.c
index 46e7775..c9e8626 100644
--- a/contrib/binutils/bfd/elf64-sparc.c
+++ b/contrib/binutils/bfd/elf64-sparc.c
@@ -2049,14 +2049,17 @@ sparc64_elf_relocate_section (output_bfd, info, input_bfd, input_section,
}
else if (h->root.type == bfd_link_hash_undefweak)
relocation = 0;
- else if (info->shared && !info->symbolic && !info->no_undefined)
+ else if (info->shared && !info->symbolic
+ && !info->no_undefined
+ && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)
relocation = 0;
else
{
if (! ((*info->callbacks->undefined_symbol)
(info, h->root.root.string, input_bfd,
input_section, rel->r_offset,
- (!info->shared || info->no_undefined))))
+ (!info->shared || info->no_undefined
+ || ELF_ST_VISIBILITY (h->other)))))
return false;
relocation = 0;
}
OpenPOWER on IntegriCloud