2000-09-03 Philip Blundell <philb@gnu.org>
authorPhil Blundell <philb@gnu.org>
Sun, 3 Sep 2000 16:32:02 +0000 (16:32 +0000)
committerPhil Blundell <philb@gnu.org>
Sun, 3 Sep 2000 16:32:02 +0000 (16:32 +0000)
* elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
references to undefined symbols in debugging sections.

bfd/ChangeLog
bfd/elf32-arm.h

index 3a967f750d7af4241e61b84e43206a9254686ee8..191b5d297af450f11af2455d1ece61732cd642ee 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-03  Philip Blundell  <philb@gnu.org>
+
+       * 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  <hjl@gnu.org>
 
        * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
index 716017ebf0c6139d6cec61e4478510ef8915a50f..f3b2a44ecbd21aaa9b99cfb80291f1a6723abc6b 100644 (file)
@@ -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;