Dual Symbols for C Constructors
The Itanium C ABI specifies that mangled names of constructors include information about their type and parameters. Accordingly, the two constructor entries observed in libraries stem from their different constructor types:
Dual Symbols and Multiple Definition Errors
Despite having dual entries, conflicting symbol definitions do not arise due to the use of the C1 and C2 suffixes. The ABI ensures that the mangled names are unique, providing compiler support for handling these two constructor types differently.
Additional Details
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3