fix output location of common symbols

This commit is contained in:
Ian Lance Taylor 1995-10-27 00:10:05 +00:00
parent 811f1bdce6
commit 1d04caa1f9

View File

@ -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. */