This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> > > > I am certain that your test case is a valid program and that the references > > to `fooo' in junk.c should resolve to the common defn in fred.c rather than > > to `_fooo' in foo.c. > > No. Solaris uses `_fooo' in foo.c. The GNU ld does the samething. > It just complains about it. That is contrary to the specification of the SVR4 ABI, page 4-27: "Similarly, if a common symbol exists (i.e., a symbol whose st_shndx field holds SHN_COMMON), the appearance of a weak symbol with the same name will not cause an error. The link editor honors the common definition and ignores the weak ones."