--cppinit, --no_cppinit
Enables the linker to use alternative C++ libraries with a different initialization symbol if required.
Syntax
--cppinit=symbol
Where
is the initialization symbol to use.symbol
Usage
If you do not specify --cppinit=
then the default
symbol symbol
__cpp_initialize__aeabi_
is assumed.
--no_cppinit
does not take a
argument.symbol
Effect
The linker adds a non-weak reference to
if any
static constructor or destructor sections are detected.symbol
For --cppinit=__cpp_initialize__aeabi_
in AArch32 state, 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.
Note
There is no equivalent of R_ARM_TARGET1 in AARCH64 state.--no_cppinit
means do not add a reference.