]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libdtrace: Do not set SHF_ALLOC on SUNW_dof relocation sections
authorMark Johnston <markj@FreeBSD.org>
Tue, 4 Apr 2023 15:21:51 +0000 (11:21 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 4 Apr 2023 18:08:16 +0000 (14:08 -0400)
commit27f35b7dd418a82cf2f5bb618bd4bb7e81253f3a
tree34915a03c05db51dce6ed277e7a34931042891d6
parent91ef6f14f234a12eb6cc961be01a483e9a0a5955
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
cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c