projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
811f1bd
)
fix output location of common symbols
author
Ian Lance Taylor
<ian@airs.com>
Fri, 27 Oct 1995 00:10:05 +0000
(
00:10
+0000)
committer
Ian Lance Taylor
<ian@airs.com>
Fri, 27 Oct 1995 00:10:05 +0000
(
00:10
+0000)
bfd/xcofflink.c
patch
|
blob
|
history
diff --git
a/bfd/xcofflink.c
b/bfd/xcofflink.c
index dda5cd823f2bb0384b9797e9dc4cd08b92e239c0..8dedde0c7624266e5efd2dbfc15fa9c25a7a9e95 100644
(file)
--- a/
bfd/xcofflink.c
+++ b/
bfd/xcofflink.c
@@
-3499,7
+3499,10
@@
xcoff_link_input_bfd (finfo, input_bfd)
if (! skip
&& isym.n_sclass == C_EXT
&& smtyp == XTY_CM
- && (*sym_hash)->root.type != bfd_link_hash_common)
+ && ((*sym_hash)->root.type != bfd_link_hash_common
+ || (*sym_hash)->root.u.c.p->section != *csectpp)
+ && ((*sym_hash)->root.type != bfd_link_hash_defined
+ || (*sym_hash)->root.u.def.section != *csectpp))
skip = true;
/* Skip local symbols if we are discarding them. */