Page MenuHomeFreeBSD

kernel linker: Disable local sym resolution by default
Needs ReviewPublic

Authored by emaste on Mon, Nov 25, 7:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 9:49 PM
Unknown Object (File)
Fri, Nov 29, 7:51 PM
Unknown Object (File)
Tue, Nov 26, 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