diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-07-11 21:22:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-07-11 21:22:17 +0000 |
commit | 6c481b58a6d669a73761749d008e9c235112a1a1 (patch) | |
tree | 4cbec20c561cdea2c55b6cfbeaef9c28fa19cbaf /bfd/elflink.h | |
parent | 0e75a8d6daf44ac18c8e5f695598b5292ee8c4b8 (diff) | |
download | gdb-6c481b58a6d669a73761749d008e9c235112a1a1.zip gdb-6c481b58a6d669a73761749d008e9c235112a1a1.tar.gz gdb-6c481b58a6d669a73761749d008e9c235112a1a1.tar.bz2 |
* aoutx.h (NAME(aout,link_add_symbols)): Don't bother to check
that archives hold a.out objects.
* cf-i386lynx.c (coff_bfd_link_add_symbols): Don't define.
(lynx_link_add_symbols): Remove.
* cf-m68klynx.c (coff_bfd_link_add_symbols): Don't define.
(lynx_link_add_symbols): Remove.
* elflink.h (elf_bfd_link_add_symbols): Don't bother to check that
archives hold ELF objects.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index 3e7ef78..6cfdff4 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -46,29 +46,11 @@ elf_bfd_link_add_symbols (abfd, info) bfd *abfd; struct bfd_link_info *info; { - bfd *first; - switch (bfd_get_format (abfd)) { case bfd_object: return elf_link_add_object_symbols (abfd, info); case bfd_archive: - first = bfd_openr_next_archived_file (abfd, (bfd *) NULL); - if (first == NULL) - { - /* It's OK to have an empty archive. */ - return true; - } - if (! bfd_check_format (first, bfd_object)) - return false; - if (bfd_get_flavour (first) != bfd_target_elf_flavour) - { - /* On Linux, we may have an a.out archive which got - recognized as an ELF archive. Therefore, we treat all - archives as though they were actually of the flavour of - their first element. */ - return (*first->xvec->_bfd_link_add_symbols) (abfd, info); - } return elf_link_add_archive_symbols (abfd, info); default: bfd_set_error (bfd_error_wrong_format); |