diff options
author | Mark Shinwell <shinwell@codesourcery.com> | 2007-05-09 13:02:10 +0000 |
---|---|---|
committer | Mark Shinwell <shinwell@codesourcery.com> | 2007-05-09 13:02:10 +0000 |
commit | 2e6030b93148e7b1097571d7e78aaebef0755c08 (patch) | |
tree | a1a2013365d7bb60c889f73869d58e2ffe7d68f1 /bfd/elf32-arm.c | |
parent | fc0d8df4b38ce74663d8d702e8641165802a200f (diff) | |
download | gdb-2e6030b93148e7b1097571d7e78aaebef0755c08.zip gdb-2e6030b93148e7b1097571d7e78aaebef0755c08.tar.gz gdb-2e6030b93148e7b1097571d7e78aaebef0755c08.tar.bz2 |
bfd/
* elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
attempt to scan if the bfd doesn't correspond to an ELF image.
(bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r-- | bfd/elf32-arm.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 97f4fd0..3fc47a9 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -3648,6 +3648,10 @@ bfd_elf32_arm_vfp11_erratum_scan (bfd *abfd, struct bfd_link_info *link_info) if (globals->vfp11_fix == BFD_ARM_VFP11_FIX_NONE) return TRUE; + + /* Skip if this bfd does not correspond to an ELF image. */ + if (bfd_get_flavour (abfd) != bfd_target_elf_flavour) + return TRUE; for (sec = abfd->sections; sec != NULL; sec = sec->next) { @@ -3819,7 +3823,11 @@ bfd_elf32_arm_vfp11_fix_veneer_locations (bfd *abfd, if (link_info->relocatable) return; - + + /* Skip if this bfd does not correspond to an ELF image. */ + if (bfd_get_flavour (abfd) != bfd_target_elf_flavour) + return; + globals = elf32_arm_hash_table (link_info); tmp_name = bfd_malloc ((bfd_size_type) strlen |