aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-m68k.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2001-03-20 10:11:07 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2001-03-20 10:11:07 +0000
commit95fc45e66fe1363261130a27022cfff16e460289 (patch)
tree4de974f769b5948eff7ffc6ed4fa09b38ffa0791 /bfd/elf32-m68k.c
parentc97fe386ef32ffb486064c5609dfecb47dd401a8 (diff)
downloadgdb-95fc45e66fe1363261130a27022cfff16e460289.zip
gdb-95fc45e66fe1363261130a27022cfff16e460289.tar.gz
gdb-95fc45e66fe1363261130a27022cfff16e460289.tar.bz2
* elf32-m68k.c (elf_m68k_relocate_section): Don't need the
relocation value when resolving a reference from a debugging section.
Diffstat (limited to 'bfd/elf32-m68k.c')
-rw-r--r--bfd/elf32-m68k.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index 6ce7360..a3df85d 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -1463,7 +1463,14 @@ elf_m68k_relocate_section (output_bfd, info, input_bfd, input_section,
&& ((! info->symbolic && h->dynindx != -1)
|| (h->elf_link_hash_flags
& ELF_LINK_HASH_DEF_REGULAR) == 0)
- && (input_section->flags & SEC_ALLOC) != 0
+ && ((input_section->flags & SEC_ALLOC) != 0
+ /* DWARF will emit R_68K_32 relocations in its
+ sections against symbols defined externally
+ in shared libraries. We can't do anything
+ with them here. */
+ || ((input_section->flags & SEC_DEBUGGING) != 0
+ && (h->elf_link_hash_flags
+ & ELF_LINK_HASH_DEF_DYNAMIC) != 0))
&& (r_type == R_68K_8
|| r_type == R_68K_16
|| r_type == R_68K_32