aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-12-10 18:51:35 +0000
committerNick Clifton <nickc@redhat.com>1999-12-10 18:51:35 +0000
commit77fb9c28ac0594b97f5b193d45118fdf09d96881 (patch)
tree7a22e35173bc78265f4b0f69ab8c0eeb303dafbf /bfd/archive.c
parent2f5288870a7b5ac5e892a64bab8fe83452dc162e (diff)
downloadgdb-77fb9c28ac0594b97f5b193d45118fdf09d96881.zip
gdb-77fb9c28ac0594b97f5b193d45118fdf09d96881.tar.gz
gdb-77fb9c28ac0594b97f5b193d45118fdf09d96881.tar.bz2
Revert previous patch.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 3390a1c..19293af 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1804,19 +1804,16 @@ _bfd_compute_and_write_armap (arch, elength)
{
flagword flags = (syms[src_count])->flags;
asection *sec = syms[src_count]->section;
- size_t namelen;
- struct orl *new_map;
- if (bfd_is_und_section (sec))
- continue;
- else if (bfd_is_com_section (sec))
+ if ((flags & BSF_GLOBAL ||
+ flags & BSF_WEAK ||
+ flags & BSF_INDIRECT ||
+ bfd_is_com_section (sec))
+ && ! bfd_is_und_section (sec))
{
- if (! bfd_allow_commons_in_armap (arch))
- continue;
- }
- else if ((flags & (BSF_GLOBAL | BSF_WEAK | BSF_INDIRECT)) == 0)
- continue;
-
+ size_t namelen;
+ struct orl *new_map;
+
/* This symbol will go into the archive header */
if (orl_count == orl_max)
{
@@ -1845,6 +1842,7 @@ _bfd_compute_and_write_armap (arch, elength)
stridx += namelen + 1;
++orl_count;
+ }
}
}