This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The property of first_global_object_name is that first_global_object_name is set to this value only for this compilation in the whole link. If this is not happening on HP-UX, it would be better to fix that rather than work around it. For example, in the first patch you quoted, this happens "because ... overrides new", so perhaps an override of new should not be placed in first_global_object_name (although I do not see why this causes a problem; there can be only one override of new in a whole program). This is the only purpose of first_global_object_name, so if this can not be made to work then first_global_object_name is useless and should be removed.
first_global_object_name is not being set to a value that's unique for all links with libstdc++. first_global_object_name is the same for an object in libstdc++.sl and for the object with the overloaded value of new in the cxa_vec application. As a result, the initializer for the EH unwind data in libstdc++ doesn't run and the unwind data for libstdc++ doesn't get properly initialized. Obviously, if this can happen with libstdc++ it can happen with other shared libraries.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |