mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* elf32-sh.c (vxworks_object_p): Only check for vxworks target vectors if
they are going to be created.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2006-08-07 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* elf32-sh.c (vxworks_object_p): Only check for vxworks target
|
||||||
|
vectors if they are going to be created.
|
||||||
|
|
||||||
2006-08-07 Nick Clifton <nickc@redhat.com>
|
2006-08-07 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* configure.in (bfd_elf32_shnbsd_vec): Fix typo.
|
* configure.in (bfd_elf32_shnbsd_vec): Fix typo.
|
||||||
|
@ -74,13 +74,17 @@ static reloc_howto_type sh_vxworks_howto_table[] =
|
|||||||
/* Return true if OUTPUT_BFD is a VxWorks object. */
|
/* Return true if OUTPUT_BFD is a VxWorks object. */
|
||||||
|
|
||||||
static bfd_boolean
|
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_shlvxworks_vec;
|
||||||
extern const bfd_target bfd_elf32_shvxworks_vec;
|
extern const bfd_target bfd_elf32_shvxworks_vec;
|
||||||
|
|
||||||
return (abfd->xvec == &bfd_elf32_shlvxworks_vec
|
return (abfd->xvec == &bfd_elf32_shlvxworks_vec
|
||||||
|| abfd->xvec == &bfd_elf32_shvxworks_vec);
|
|| abfd->xvec == &bfd_elf32_shvxworks_vec);
|
||||||
|
#else
|
||||||
|
return FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the howto table for ABFD. */
|
/* Return the howto table for ABFD. */
|
||||||
|
Reference in New Issue
Block a user