diff options
author | Alan Modra <amodra@gmail.com> | 2002-03-13 02:56:08 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-03-13 02:56:08 +0000 |
commit | 4ddafab0a6fa8c3069d0b323359bf20d3b390e46 (patch) | |
tree | 3975a78f064bb8ada7c708692bc739640e2c73d0 /bfd/elflink.h | |
parent | 804134875c6fd2eb3b316393b918b2c9b9b14405 (diff) | |
download | gdb-4ddafab0a6fa8c3069d0b323359bf20d3b390e46.zip gdb-4ddafab0a6fa8c3069d0b323359bf20d3b390e46.tar.gz gdb-4ddafab0a6fa8c3069d0b323359bf20d3b390e46.tar.bz2 |
* elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
when word size of input matches output word size.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index 2edbed0..bdd03bc 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -5320,10 +5320,11 @@ elf_bfd_final_link (abfd, info) for (p = o->link_order_head; p != NULL; p = p->next) { if (p->type == bfd_indirect_link_order - && (bfd_get_flavour (p->u.indirect.section->owner) - == bfd_target_elf_flavour)) + && (bfd_get_flavour ((sub = p->u.indirect.section->owner)) + == bfd_target_elf_flavour) + && (sub->arch_info->bits_per_word + == abfd->arch_info->bits_per_word)) { - sub = p->u.indirect.section->owner; if (! sub->output_has_begun) { if (! elf_link_input_bfd (&finfo, sub)) |