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
Unknown Object (File)
Mon, Apr 14, 10:41 AM
Unknown Object (File)
Mon, Apr 14, 3:51 AM
Unknown Object (File)
Mon, Apr 14, 2:01 AM
Unknown Object (File)
Sun, Apr 13, 9:25 PM
Unknown Object (File)
Mar 12 2025, 2:44 AM
Unknown Object (File)
Jan 30 2025, 2:15 PM
Unknown Object (File)
Jan 18 2025, 8:29 AM
Unknown Object (File)
Jan 6 2025, 10:06 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32837
Build 30247: arc lint + arc unit