Page MenuHomeFreeBSD

Allow overriding the tool used for stripping binaries
ClosedPublic

Authored by arichardson on Aug 7 2020, 1:13 PM.
Tags
None
Referenced Files
F146336872: D25988.diff
Sun, Mar 1, 9:01 PM
Unknown Object (File)
Sun, Mar 1, 4:29 PM
Unknown Object (File)
Sun, Mar 1, 5:27 AM
Unknown Object (File)
Mon, Feb 9, 10:02 AM
Unknown Object (File)
Jan 6 2026, 7:12 PM
Unknown Object (File)
Jan 1 2026, 6:12 AM
Unknown Object (File)
Dec 25 2025, 4:06 PM
Unknown Object (File)
Dec 23 2025, 1:36 AM
Subscribers

Details

Summary

Since the make variable STRIP is already used for other purposes, this
uses STRIPBIN (which is also used for the same purpose by install(1).
This allows using LLVM objcopy to strip binaries instead of the in-tree
elftoolchain objcopy. We make use of this in CheriBSD since passing
binaries generated by our toolchain to elftoolchain strip sometimes results
in assertion failures.

This allows working around https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248516
by specifying STRIPBIN=/path/to/llvm-strip

Obtained from: CheriBSD

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable