HomeFreeBSD

libdtrace: Do not set SHF_ALLOC on SUNW_dof relocation sections

Description

libdtrace: Do not set SHF_ALLOC on SUNW_dof relocation sections

The section will contain static relocations which do not need to be
preserved after linking, and moreover these relocations may reference
symbols that end up getting removed.

Do not set SHF_ALLOC and instead let the linker decide what needs to be
done.

PR: 258872
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 27f35b7dd418a82cf2f5bb618bd4bb7e81253f3a)

Details

Provenance
markjAuthored on Apr 4 2023, 3:21 PM
Parents
rG263fa9ba098e: arm64: Move the initial kernel stack out of the init_pagetables section
Branches
Unknown
Tags
Unknown