Page MenuHomeFreeBSD

kernel linker: Disable local sym resolution by default
Needs ReviewPublic

Authored by emaste on Nov 25 2024, 7:10 PM.
Tags
None
Referenced Files
F106815904: D47742.diff
Sun, Jan 5, 8:51 PM
Unknown Object (File)
Dec 5 2024, 4:03 PM
Unknown Object (File)
Dec 3 2024, 9:33 PM
Unknown Object (File)
Nov 29 2024, 9:49 PM
Unknown Object (File)
Nov 29 2024, 7:51 PM
Unknown Object (File)
Nov 26 2024, 8:00 AM
Subscribers
None

Details

Reviewers
kib
markj
truckman
Summary
In 95c20faf11a1 and ecd8245e0d77 kib introduced support to have the
kernel linker stop resolving local symbols from other files, but did
not enable it by default to avoid surprises.  Flip the default now,
in advance of FreeBSD 15.0.  The debug.link_elf_leak_locals sysctl
is available to revert to the previous behaviour if necessary.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

PR: 207898