libgcc problems
David Edelsohn
dje@watson.ibm.com
Thu Jan 15 16:30:00 GMT 1998
>>>>> pooh writes:
>> Another idea: should collect2 not export any symbols with names reserved for
>> the implementation, e.g. ones beginning with double underscore and ones
>> beginning with
>> single underscore and capital letter?
Andrey> Good question! It seems to me that the answer should be yes except
Andrey> symbols which can be inserted into code directly by compiler.
I guess I do not follow the exception case. Why or when should
the compiler "insert" such symbols meant to be exported.
>> I do not know whether _ptrgl and _savef14 was an illegal name or all
>> single underscore names should be protected. AIX does not prepend
>> underscores to user symbols. I do not know enough about the current
>> implementation to state categorically that those symbols never need to
>> be exported in some other instance.
Andrey> We shouldn't take care about symbols like _ptrgl or _savef14 unless
Andrey> we want to enable reexporting symbols from static libraries (exactly
Andrey> a problem I got playing with libgcc), because these symbols are
Andrey> contained in a static member of libc.a.
Did collect2 try to re-export these reserved symbols itself or did
you do something extra which caused the problem? GCC/collect2 never
should re-export symbols from a static library unless a user explicitly
creates an export list and (hopefully) knows what he or she is doing.
David
More information about the Gcc
mailing list