]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle
authorJulian Brown <julian@codesourcery.com>
Wed, 18 May 2005 14:02:44 +0000 (14:02 +0000)
committerJulian Brown <julian@codesourcery.com>
Wed, 18 May 2005 14:02:44 +0000 (14:02 +0000)
the situation where a symbol's section is not known but a section
relative R_ARM_RELATIVE reloc has to be generated for the Symbian
OS.

bfd/ChangeLog
bfd/elf32-arm.c
ld/ChangeLog

index 9efe3cf1a9ecef0111382c0d0f7a6442ad856667..20ce736b52aa1cd8bfef358e2556328603d0c3cd 100644 (file)
@@ -1,3 +1,10 @@
+2005-05-18  Nick Clifton  <nickc@redhat.com>
+
+       * elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle
+       the situation where a symbol's section is not known but a section
+       relative R_ARM_RELATIVE reloc has to be generated for the Symbian
+       OS.
+
 2005-03-30  Julian Brown  <julian@codesourcery.com>
 
        * bfd-in.h (bfd_is_arm_mapping_symbol_name): Add prototype.
index ddc735d5affec7292eb3bc22f851bbb789f01e0d..14f752d2d37ff622cc8da361821382e8cce34661 100644 (file)
@@ -3007,7 +3007,10 @@ elf32_arm_final_link_relocate (reloc_howto_type *           howto,
                     the section symbol as it is convenient.  (We
                     cannot use the symbol given by "h" directly as it
                     will not appear in the dynamic symbol table.)  */
-                 symbol = elf_section_data (sym_sec->output_section)->dynindx;
+                 if (sym_sec)
+                   symbol = elf_section_data (sym_sec->output_section)->dynindx;
+                 else
+                   symbol = elf_section_data (input_section->output_section)->dynindx;
                  BFD_ASSERT (symbol != 0);
                }
              else
index f9c2e632ea146e92eb03d4fef005bf15c8049831..8bc480bdd5ddc6f3e8bd5de9eb245c65156a04dc 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-18  Julian Brown <julian@codesourcery.com>
+
+       * ldlang.c (print_assignment): Do not rely upon a valid result
+       having a section associated with it.
+
 2005-05-18  Julian Brown  <julian@codesourcery.com>
 
        Backport from mainline: