diff options
author | Nick Clifton <nickc@redhat.com> | 2006-08-07 14:03:35 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-08-07 14:03:35 +0000 |
commit | 527a23b8c50c46c2d3b74fb7bb207c66c7251016 (patch) | |
tree | 7c3225dd80d0ddb7276317d8f1b3df59f1326e03 /bfd/elf32-sh.c | |
parent | 7b12cedcda5639cc94c2c4bc8d3a1e4168e58c49 (diff) | |
download | gdb-527a23b8c50c46c2d3b74fb7bb207c66c7251016.zip gdb-527a23b8c50c46c2d3b74fb7bb207c66c7251016.tar.gz gdb-527a23b8c50c46c2d3b74fb7bb207c66c7251016.tar.bz2 |
* elf32-sh.c (vxworks_object_p): Only check for vxworks target vectors if
they are going to be created.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r-- | bfd/elf32-sh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index f0ebd4f..849c9c7 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -74,13 +74,17 @@ static reloc_howto_type sh_vxworks_howto_table[] = /* Return true if OUTPUT_BFD is a VxWorks object. */ static bfd_boolean -vxworks_object_p (bfd *abfd) +vxworks_object_p (bfd *abfd ATTRIBUTE_UNUSED) { +#if !defined INCLUDE_SHMEDIA && !defined SH_TARGET_ALREADY_DEFINED extern const bfd_target bfd_elf32_shlvxworks_vec; extern const bfd_target bfd_elf32_shvxworks_vec; return (abfd->xvec == &bfd_elf32_shlvxworks_vec || abfd->xvec == &bfd_elf32_shvxworks_vec); +#else + return FALSE; +#endif } /* Return the howto table for ABFD. */ |