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
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29049

(cherry picked from commit 5e6989ba4f26acafc77baa6055c0a9e7fe683514)

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
rG39a1b7bd9327: gmirror: Pre-allocate the timeout event structure
Branches
Unknown
Tags
Unknown