diff options
author | Nick Clifton <nickc@redhat.com> | 1999-12-10 18:51:35 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-12-10 18:51:35 +0000 |
commit | 77fb9c28ac0594b97f5b193d45118fdf09d96881 (patch) | |
tree | 7a22e35173bc78265f4b0f69ab8c0eeb303dafbf /bfd/elflink.h | |
parent | 2f5288870a7b5ac5e892a64bab8fe83452dc162e (diff) | |
download | gdb-77fb9c28ac0594b97f5b193d45118fdf09d96881.zip gdb-77fb9c28ac0594b97f5b193d45118fdf09d96881.tar.gz gdb-77fb9c28ac0594b97f5b193d45118fdf09d96881.tar.bz2 |
Revert previous patch.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index 2a8c3db..ab679a7 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -200,26 +200,7 @@ elf_link_add_archive_symbols (abfd, info) if (h == NULL) continue; - /* We have changed the GNU archiver so that it will only place - non-common symbols into its archive map. Thus if we come across - a symbol in the archive map, which is currently considered to be - a common symbol, we can safely assume that we should link the - element in, in order to get in the definition of the symbol. - - Previous versions of the archiver would place common symbols into - the archive map. This meant that in order to only link in an - element if it contained a *definition* of a common symbol, it - would be necessary to read in the element and scan its symbol - table - a slow and wasteful process. - - In fact previous versions of this code did not even do that, - instead it just unilaterally ignored any symbols in the archive - map which were currently marked as common. So in order to link - in an archive element containing the definition of a common - symbol it was necessary to have that element also contain the - defintion of a currently undefined symbol. */ - if (h->root.type != bfd_link_hash_undefined - && h->root.type != bfd_link_hash_common) + if (h->root.type != bfd_link_hash_undefined) { if (h->root.type != bfd_link_hash_undefweak) defined[i] = true; |