From: Paul Brook Date: Wed, 29 Nov 2006 17:40:29 +0000 (+0000) Subject: 2006-11-29 Paul Brook X-Git-Tag: insight_6_8-branchpoint~2514 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d1091789df2055b4954b08ce9a8b93c3984943d0;p=pf3gnuchains%2Fpf3gnuchains4x.git 2006-11-29 Paul Brook bfd/ * elf32-arm.c (elf32_arm_to_thumb_export_stub): Assert that output section is present. (allocate_dynrelocs): Only add export stub for symbols defined in this object. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0aee9b3215..d68e8765c4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,4 +1,18 @@ 2006-11-29 Paul Brook + + * elf32-arm.c (elf32_arm_to_thumb_export_stub): Assert that output + section is present. + (allocate_dynrelocs): Only add export stub for symbols defined in + this object. + +2006-11-29 Paul Brook + + * elf32-arm.c (elf32_arm_to_thumb_export_stub): Assert that output + section is present. + (allocate_dynrelocs): Only add export stub for symbols defined in + this object. + +2006-11-29 Paul Brook Julian Brown * elf32-arm.c (copy_eabi_attributes): Correct starting offset. diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 86e8bff488..881bd6013e 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -3380,6 +3380,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, @@ -7749,6 +7752,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) {