--cppinit, --no_cppinit

This option enables the linker to use alternative C++ libraries with a different initialization symbol if required.

Show/hideSyntax

--cppinit=symbol

If --cppinit=symbol is not specified then the default symbol __cpp_initialize__aeabi_ is assumed.

--no_cppinit does not take a symbol argument.

Show/hideEffect

The linker adds a non-weak reference to symbol if any static constructor or destructor sections are detected.

For --cppinit=__cpp_initialize__aeabi_, the linker processes R_ARM_TARGET1 relocations as R_ARM_REL32, because this is required by the __cpp_initialize__aeabi_ function. In all other cases R_ARM_TARGET1 relocations are processed as R_ARM_ABS32.

Show/hideSee also

Copyright © 2008, 2011-2012 ARM. All rights reserved.ARM DUI 0458C
Non-ConfidentialID062912