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)
Tue, Oct 29, 10:09 AM
Unknown Object (File)
Oct 4 2024, 3:35 PM
Unknown Object (File)
Sep 18 2024, 11:12 AM
Unknown Object (File)
Sep 11 2024, 3:46 PM
Unknown Object (File)
Sep 9 2024, 12:22 AM
Unknown Object (File)
Sep 5 2024, 4:40 AM
Unknown Object (File)
Sep 4 2024, 3:05 PM
Unknown Object (File)
Aug 17 2024, 6:53 PM
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