aboutsummaryrefslogtreecommitdiff
path: root/bfd/sunos.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-17 18:47:50 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-17 18:47:50 +0000
commitec88c42e5e4bb6daaa2b357e5347cbadef48c0cc (patch)
tree28e7145aae51dde53ec80f1e93000b3ac558233f /bfd/sunos.c
parent9fefc1befc864f94df287cf7f6f3c4d2685c0cb5 (diff)
downloadgdb-ec88c42e5e4bb6daaa2b357e5347cbadef48c0cc.zip
gdb-ec88c42e5e4bb6daaa2b357e5347cbadef48c0cc.tar.gz
gdb-ec88c42e5e4bb6daaa2b357e5347cbadef48c0cc.tar.bz2
* sunos.c (sunos_add_one_symbol): Treat a common symbol from a
dynamic object as being in the .bss section of the object, rather than as being undefined.
Diffstat (limited to 'bfd/sunos.c')
-rw-r--r--bfd/sunos.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/sunos.c b/bfd/sunos.c
index 0ebc9ad..60a1595 100644
--- a/bfd/sunos.c
+++ b/bfd/sunos.c
@@ -851,11 +851,12 @@ sunos_add_one_symbol (info, abfd, name, flags, section, value, string,
if (hashp != NULL)
*hashp = (struct bfd_link_hash_entry *) h;
- /* Treat a common symbol in a dynamic object as an undefined symbol.
- We don't want to allocate space in .bss for it. */
+ /* Treat a common symbol in a dynamic object as defined in the .bss
+ section of the dynamic object. We don't want to allocate space
+ for it in our process image. */
if ((abfd->flags & DYNAMIC) != 0
&& section == &bfd_com_section)
- section = &bfd_und_section;
+ section = obj_bsssec (abfd);
if (section != &bfd_und_section
&& h->root.root.type != bfd_link_hash_new