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, May 11, 10:14 PM
Unknown Object (File)
Wed, May 6, 7:38 AM
Unknown Object (File)
Tue, May 5, 7:14 AM
Unknown Object (File)
Mon, May 4, 5:30 AM
Unknown Object (File)
Sat, May 2, 12:26 PM
Unknown Object (File)
Tue, Apr 28, 4:32 PM
Unknown Object (File)
Tue, Apr 28, 4:27 PM
Unknown Object (File)
Tue, Apr 21, 8:11 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