aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-20 05:37:05 +0000
committerAlan Modra <amodra@gmail.com>2000-04-20 05:37:05 +0000
commit1319985e96c6f9173507d44cd1c5b09543c347ae (patch)
tree575c0dc61fbce5e4eb586e8bc1933995dfc248f3 /bfd/elf32-i386.c
parentba886e9d726a0eaf157c2fbdbb26d4cac0b37dbe (diff)
downloadgdb-1319985e96c6f9173507d44cd1c5b09543c347ae.zip
gdb-1319985e96c6f9173507d44cd1c5b09543c347ae.tar.gz
gdb-1319985e96c6f9173507d44cd1c5b09543c347ae.tar.bz2
H.J's x86 fix for "nm -l" on shared libraries, applied to ppc too.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 90efba8..e4dbf9d 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1291,7 +1291,9 @@ elf_i386_relocate_section (output_bfd, info, input_bfd, input_section,
sections against symbols defined externally
in shared libraries. We can't do anything
with them here. */
- || (input_section->flags & SEC_DEBUGGING) != 0)))
+ || ((input_section->flags & SEC_DEBUGGING) != 0
+ && (h->elf_link_hash_flags
+ & ELF_LINK_HASH_DEF_DYNAMIC) != 0))))
{
/* In these cases, we don't need the relocation
value. We check specially because in some