diff options
author | Tom Rix <trix@redhat.com> | 2002-03-20 12:03:27 +0000 |
---|---|---|
committer | Tom Rix <trix@redhat.com> | 2002-03-20 12:03:27 +0000 |
commit | 1f8a945384ae322df927e649929b1c93704d6034 (patch) | |
tree | 6271d4f04c6e0f53ceb4a838b361cb97ba4e96f2 /bfd | |
parent | 0f8591f9ed070ecc84a7c77553742b8db1d7df07 (diff) | |
download | gdb-1f8a945384ae322df927e649929b1c93704d6034.tar.gz |
Fix problem with linking shared libstdc++-v3 on AIX.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/xcofflink.c | 22 |
2 files changed, 16 insertions, 11 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7570b23c474..c0e8dee8582 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-03-19 Tom Rix <trix@redhat.com> + + * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all + dynamic objects in archives. + 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com> * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index b817426ae68..c122aeffb80 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -588,11 +588,11 @@ _bfd_xcoff_bfd_link_add_symbols (abfd, info) case bfd_archive: /* If the archive has a map, do the usual search. We then need - to check the archive for stripped dynamic objects, because - they will not appear in the archive map even though they - should, perhaps, be included. If the archive has no map, we - just consider each object file in turn, since that apparently - is what the AIX native linker does. */ + to check the archive for dynamic objects, because they may not + appear in the archive map even though they should, perhaps, be + included. If the archive has no map, we just consider each object + file in turn, since that apparently is what the AIX native linker + does. */ if (bfd_has_map (abfd)) { if (! (_bfd_generic_link_add_archive_symbols @@ -602,18 +602,18 @@ _bfd_xcoff_bfd_link_add_symbols (abfd, info) { bfd *member; - + member = bfd_openr_next_archived_file (abfd, (bfd *) NULL); while (member != NULL) { if (bfd_check_format (member, bfd_object) - && (! bfd_has_map (abfd) - || ((member->flags & DYNAMIC) != 0 - && (member->flags & HAS_SYMS) == 0))) + && (info->hash->creator == member->xvec) + && (! bfd_has_map (abfd) || (member->flags & DYNAMIC) != 0)) { boolean needed; - - if (! xcoff_link_check_archive_element (member, info, &needed)) + + if (! xcoff_link_check_archive_element (member, info, + &needed)) return false; if (needed) member->archive_pass = -1; |