From 05924f3654beecbf6c38691e4a2588d944541729 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Sun, 3 Sep 2000 16:32:02 +0000 Subject: [PATCH] 2000-09-03 Philip Blundell * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate references to undefined symbols in debugging sections. --- bfd/ChangeLog | 5 +++++ bfd/elf32-arm.h | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3a967f7..191b5d2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2000-09-03 Philip Blundell + + * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate + references to undefined symbols in debugging sections. + 2000-09-02 H.J. Lu * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT, diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index 716017e..f3b2a44 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -1794,7 +1794,14 @@ elf32_arm_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_ARM_ABS32 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)) ) relocation_needed = 0; break; -- 2.7.4