aboutsummaryrefslogtreecommitdiff
path: root/bfd/sunos.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-11-01 18:25:35 +0000
committerIan Lance Taylor <ian@airs.com>1995-11-01 18:25:35 +0000
commitb2193cc59423f8f15c25bd765c774e4791a22123 (patch)
tree2d925195a93529cf7a88db262862c1785ba4c6dd /bfd/sunos.c
parentbaabeb74a72eae51dcb5994497bc233584f42353 (diff)
downloadbinutils-b2193cc59423f8f15c25bd765c774e4791a22123.zip
binutils-b2193cc59423f8f15c25bd765c774e4791a22123.tar.gz
binutils-b2193cc59423f8f15c25bd765c774e4791a22123.tar.bz2
* elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
BFD is not of the right type. (bfd_elf_get_needed_list): Likewise. * i386linux.c (bfd_linux_size_dynamic_sections): Likewise. * sunos.c (bfd_sunos_get_needed_list): Likewise. * xcofflink.c (XCOFF_XVECP): Define. (bfd_xcoff_link_record_set): Don't do anything if the BFD is not of the right type. (bfd_xcoff_import_symbol): Likewise. (bfd_xcoff_export_symbol): Likewise. (bfd_xcoff_link_count_reloc): Likewise. (bfd_xcoff_record_link_assignment): Likewise. (bfd_xcoff_size_dynamic_sections): Likewise.
Diffstat (limited to 'bfd/sunos.c')
-rw-r--r--bfd/sunos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/sunos.c b/bfd/sunos.c
index a180f2f..74ab1eb 100644
--- a/bfd/sunos.c
+++ b/bfd/sunos.c
@@ -1155,6 +1155,8 @@ bfd_sunos_get_needed_list (abfd, info)
bfd *abfd;
struct bfd_link_info *info;
{
+ if (info->hash->creator != &MY(xvec))
+ return NULL;
return sunos_hash_table (info)->needed;
}