2007-02-05 Dave Brolley <brolley@redhat.com>
authorDave Brolley <brolley@redhat.com>
Mon, 5 Feb 2007 23:15:38 +0000 (23:15 +0000)
committerDave Brolley <brolley@redhat.com>
Mon, 5 Feb 2007 23:15:38 +0000 (23:15 +0000)
            Stan Cox  <scox@redhat.com>

        PR ld/3972
        * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.

bfd/ChangeLog
bfd/elflink.c

index 8e0e011ef7bc417aab7a20ea46dc5e5c49dceba9..8bfc5b06a2818a984f300835531f0eac57ce47b7 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-05  Dave Brolley  <brolley@redhat.com>
+            Stan Cox  <scox@redhat.com>
+
+       PR ld/3972
+       * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
+
 2007-02-05  Dave Brolley  <brolley@redhat.com>
 
        * elflink.h: Add support for Toshiba MeP.
index 4da5d792b73caa6e550286d89ce94f08e4cf36f0..b4dfcebae917d828198271421062c10a149cb5c1 100644 (file)
@@ -8082,6 +8082,15 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
       if (isymbuf == NULL)
        return FALSE;
     }
+  /* evaluate_complex_relocation_symbols looks for symbols in
+     finfo->internal_syms.  */
+  else if (isymbuf != NULL && locsymcount != 0)
+    {
+      bfd_elf_get_elf_syms (input_bfd, symtab_hdr, locsymcount, 0,
+                           finfo->internal_syms,
+                           finfo->external_syms,
+                           finfo->locsym_shndx);
+    }
 
   /* Find local symbol sections and adjust values of symbols in
      SEC_MERGE sections.  Write out those local symbols we know are