HomeFreeBSD

Stop calling _init/_fini methods from crt1 for dynamic binaries. Do
rS232832Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Stop calling _init/_fini methods from crt1 for dynamic binaries. Do
call preinit, init and fini arrays methods from crt1 for static binaries.

Mark new crt1 with FreeBSD-specific ELF note.

Move some common crt1 code into new MI file ignore_init.c, to reduce
duplication. Also, conservatively adjust nearby sources for style.

Reviewed by: kan
Tested by: andrew (arm), flo (sparc64)
MFC after: 3 weeks

Details

Provenance
kibAuthored on
Parents
rS232831: Add support for preinit, init and fini arrays. Some ABIs, in
Branches
Unknown
Tags
Unknown

Event Timeline