C8.5.7 C++ initialization in the BPABI DLL-like model
A dynamically linked library (DLL) supports the initialization of static constructors with a table that contains references to initializer functions that perform the initialization.
The table is stored in an ELF section with a special section type of
SHT_INIT_ARRAY. For each of these initializers there is a relocation of
type R_ARM_TARGET1 to a function that performs the initialization.
The ELF Application Binary Interface (ABI) specification
describes R_ARM_TARGET1 as either a relative form, or an absolute form.
The Arm® C
libraries use the relative form. For example, if the linker detects a definition of the
Arm C library __cpp_initialize__aeabi, it uses the relative form of R_ARM_TARGET1 otherwise it uses the absolute form.
Note:
The DLL-like model is not supported for AArch64
state.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.