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 | 05618f68ca17d41a28d4cea10e99dfc6a853ee36 (patch) | |
tree | c44703dc2acf618e3a5bb93de6a26d316afa6ce6 /bfd/elf32-arm.c | |
parent | df55a1f59abc25b753a35badcec9afcea3ed115e (diff) | |
download | binutils-redhat-05618f68ca17d41a28d4cea10e99dfc6a853ee36.tar.gz |
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 97f4fd0858..3fc47a9fa6 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 |