HomeFreeBSD

link_elf_obj: Handle init_array sections in KLDs

Description

link_elf_obj: Handle init_array sections in KLDs

Reuse existing handling for .ctors, print a warning if multiple
constructor sections are present. Destructors are not handled as of
yet.

This is required for KASAN.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29049

Details

Provenance
markjAuthored on Mar 4 2021, 3:02 PM
Reviewer
kib
Differential Revision
D29049: link_elf_obj: Process init_array and fini_array
Parents
rG23553d6b940f: Fix creating the early arm64 level 2 blocks
Branches
Unknown
Tags
Unknown