aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-sparc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-07-11 05:33:28 +0000
committerAlan Modra <amodra@gmail.com>2002-07-11 05:33:28 +0000
commit239e1f3afa2f6bc24acde3b81481f933b40a3531 (patch)
tree4484c4d5bf5e2a1e0fb0bdd3cb5e44451c607ad7 /bfd/elf32-sparc.c
parent7e8d4ab4d1db50fe54dbc90d632c07e98b869d55 (diff)
downloadgdb-239e1f3afa2f6bc24acde3b81481f933b40a3531.zip
gdb-239e1f3afa2f6bc24acde3b81481f933b40a3531.tar.gz
gdb-239e1f3afa2f6bc24acde3b81481f933b40a3531.tar.bz2
* elf32-i386.c (elf_i386_relocate_section): Don't complain about
unresolved debugging relocs in dynamic applications. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_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.
Diffstat (limited to 'bfd/elf32-sparc.c')
-rw-r--r--bfd/elf32-sparc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c
index 3a78f5f..38200dc 100644
--- a/bfd/elf32-sparc.c
+++ b/bfd/elf32-sparc.c
@@ -1561,10 +1561,11 @@ elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section,
break;
}
- /* ??? Copied from elf32-i386.c, debugging section check and all. */
+ /* Dynamic relocs are not propagated for SEC_DEBUGGING sections
+ because such sections are not SEC_ALLOC and thus ld.so will
+ not process them. */
if (unresolved_reloc
- && !(info->shared
- && (input_section->flags & SEC_DEBUGGING) != 0
+ && !((input_section->flags & SEC_DEBUGGING) != 0
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0))
(*_bfd_error_handler)
(_("%s(%s+0x%lx): unresolvable relocation against symbol `%s'"),