diff options
author | Jakub Jelinek <jakub@redhat.com> | 2003-08-11 14:26:11 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2003-08-11 14:26:11 +0000 |
commit | 15f40dfc73fc065fd6f203ea56fc8edbcd6736f0 (patch) | |
tree | c70f85170a43776893d9e151b0af376b5259f683 /bfd/elf32-ppc.c | |
parent | 6ab189d5a4e597beffd8ca1d6f3e023f43425961 (diff) | |
download | gdb-15f40dfc73fc065fd6f203ea56fc8edbcd6736f0.zip gdb-15f40dfc73fc065fd6f203ea56fc8edbcd6736f0.tar.gz gdb-15f40dfc73fc065fd6f203ea56fc8edbcd6736f0.tar.bz2 |
* 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-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index b820638..b78a64c 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -4760,7 +4760,7 @@ ppc_elf_relocate_section (bfd *output_bfd, { if (! ((*info->callbacks->undefined_symbol) (info, h->root.root.string, input_bfd, input_section, - rel->r_offset, (!info->shared + rel->r_offset, (info->executable || info->no_undefined || ELF_ST_VISIBILITY (h->other))))) return FALSE; @@ -5529,7 +5529,7 @@ ppc_elf_relocate_section (bfd *output_bfd, + sym_sec->output_offset); } } - else if (info->shared + else if (!info->executable && !info->no_undefined && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT) ; @@ -5538,7 +5538,7 @@ ppc_elf_relocate_section (bfd *output_bfd, 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; continue; |