diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-11-01 18:25:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-11-01 18:25:35 +0000 |
commit | b2193cc59423f8f15c25bd765c774e4791a22123 (patch) | |
tree | 2d925195a93529cf7a88db262862c1785ba4c6dd /bfd/elf.c | |
parent | baabeb74a72eae51dcb5994497bc233584f42353 (diff) | |
download | gdb-b2193cc59423f8f15c25bd765c774e4791a22123.zip gdb-b2193cc59423f8f15c25bd765c774e4791a22123.tar.gz gdb-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/elf.c')
-rw-r--r-- | bfd/elf.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -446,7 +446,8 @@ bfd_elf_set_dt_needed_name (abfd, name) bfd *abfd; const char *name; { - elf_dt_needed_name (abfd) = name; + if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) + elf_dt_needed_name (abfd) = name; } /* Get the list of DT_NEEDED entries for a link. */ @@ -456,6 +457,8 @@ bfd_elf_get_needed_list (abfd, info) bfd *abfd; struct bfd_link_info *info; { + if (info->hash->creator->flavour != bfd_target_elf_flavour) + return NULL; return elf_hash_table (info)->needed; } |