You copied the Doc URL to your clipboard.
--preinit, --no_preinit
Enables the linker to use a different image pre-initialization routine if required.
Syntax
--preinit=symbol
If --preinit=
is not specified then the default
symbol symbol
__arm_preinit_
is assumed.
--no_preinit
does not take a symbol argument.
Effect
The linker adds a non-weak reference to symbol if a .preinit_array
section is
detected.
For --preinit=__arm_preinit_
or
--cppinit=__cpp_initialize_aeabi_
, the linker processes
R_ARM_TARGET1 relocations as R_ARM_REL32, because this is required by the
__arm_preinit
and __cpp_initialize_aeabi_
functions. In all other cases R_ARM_TARGET1 relocations are processes as
R_ARM_ABS32.