PR3042
Mark Mitchell
mark@codesourcery.com
Sun Jun 10 16:48:00 GMT 2001
>>>>> "David" == David Edelsohn <dje@watson.ibm.com> writes:
>>>>> Mark Mitchell writes:
Mark> Right now, the former does not allocate storage, while the
Mark> latter does. Under my poposal, neither would llocate
Mark> storage.
David> The application which includes the header allocates COMMON
David> storage in the BSS section. The library, which performs
David> some explicit instantiations, allocates a STRONG symbol and
David> storage in the data section.
David> If there never was an explicit instantiation, the BSS
David> storage allocation exists and would be used (which is
David> exactly the sharing problem with default AIX linking
David> semantics for shared libraries that is causing the errors).
Yes.
That's consistent with what I said above, for the uninitialized case.
For the initialized case, I think that you will find that there is no
storage allocated whatsoever.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Libstdc++
mailing list