]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2006-10-30 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Mon, 30 Oct 2006 21:56:42 +0000 (21:56 +0000)
committerPaul Brook <paul@codesourcery.com>
Mon, 30 Oct 2006 21:56:42 +0000 (21:56 +0000)
bfd/
* elf32-arm.c (elf32_arm_to_thumb_export_stub): Assert that output
section is present.
(allocate_dynrelocs): Only add export stub for symbols definind in
this object.

ChangeLog.csl
bfd/elf32-arm.c

index 0a14213f2c69792ce1aafaa988af63dc74096f42..68f42e78e5a401e08d4cec2ee17f1e667c88fb87 100644 (file)
@@ -1,3 +1,11 @@
+2006-10-30  Paul Brook  <paul@codesourcery.com>
+
+       bfd/
+       * elf32-arm.c (elf32_arm_to_thumb_export_stub): Assert that output
+       section is present.
+       (allocate_dynrelocs): Only add export stub for symbols definind in
+       this object.
+
 2006-10-30  Kazu Hirata  <kazu@codesourcery.com>
 
        Merge fido bits:
index fa9867ec8ea40c9bcafa360c2c1925b70d2a5986..f842dca2a1ad462864652108f42bd80e143f66ad 100644 (file)
@@ -3366,6 +3366,9 @@ elf32_arm_to_thumb_export_stub (struct elf_link_hash_entry *h, void * inf)
   BFD_ASSERT (s->output_section != NULL);
 
   sec = eh->export_glue->root.u.def.section;
+
+  BFD_ASSERT (sec->output_section != NULL);
+
   val = eh->export_glue->root.u.def.value + sec->output_offset
        + sec->output_section->vma;
   myh = elf32_arm_create_thumb_stub (info, h->root.root.string,
@@ -7724,6 +7727,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
 
   /* Allocate stubs for exported Thumb functions on v4t.  */
   if (!htab->use_blx && h->dynindx != -1
+      && h->def_regular
       && ELF_ST_TYPE (h->type) == STT_ARM_TFUNC
       && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)
     {