diff options
author | Alan Modra <amodra@gmail.com> | 2000-04-20 05:37:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-04-20 05:37:05 +0000 |
commit | 1319985e96c6f9173507d44cd1c5b09543c347ae (patch) | |
tree | 575c0dc61fbce5e4eb586e8bc1933995dfc248f3 /bfd/elf32-ppc.c | |
parent | ba886e9d726a0eaf157c2fbdbb26d4cac0b37dbe (diff) | |
download | gdb-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-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 242cfb7..db5b268 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -3043,7 +3043,9 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section, It's here to avoid a crash when generating a shared library with DWARF debugging information. */ - || (input_section->flags & SEC_DEBUGGING) != 0) + || ((input_section->flags & SEC_DEBUGGING) != 0 + && (h->elf_link_hash_flags + & ELF_LINK_HASH_DEF_DYNAMIC) != 0)) && (r_type == R_PPC_ADDR32 || r_type == R_PPC_ADDR24 || r_type == R_PPC_ADDR16 |