summaryrefslogtreecommitdiff
path: root/bfd/elf32-sparc.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2003-08-11 14:26:11 +0000
committerJakub Jelinek <jakub@redhat.com>2003-08-11 14:26:11 +0000
commit0e8589eceedb9fe57cff628e1ee1f36a4567c728 (patch)
treecb930c8e60ac72f21180410c2a92b4f7e0187af7 /bfd/elf32-sparc.c
parentd75cf3e8164fe4f757a23e40a958a00eee84ddb4 (diff)
downloadbinutils-redhat-0e8589eceedb9fe57cff628e1ee1f36a4567c728.tar.gz
* elf32-i386.c (elf_i386_relocate_section): Make undefined symbols
fatal if -pie. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. (ppc_elf_relocate_section) <case R_PPC_RELAX32>: Issue fatal error on undefined symbols if -pie. * elf32-sh.c (sh_elf_relocate_section): Likewise.
Diffstat (limited to 'bfd/elf32-sparc.c')
-rw-r--r--bfd/elf32-sparc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c
index 136d80e37d..d8ad11d77a 100644
--- a/bfd/elf32-sparc.c
+++ b/bfd/elf32-sparc.c
@@ -2218,7 +2218,7 @@ elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section,
if (! ((*info->callbacks->undefined_symbol)
(info, h->root.root.string, input_bfd,
input_section, rel->r_offset,
- (!info->shared || info->no_undefined
+ (info->executable || info->no_undefined
|| ELF_ST_VISIBILITY (h->other)))))
return FALSE;
}