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)
Fri, May 3, 9:36 AM
Unknown Object (File)
Mar 23 2024, 5:38 AM
Unknown Object (File)
Mar 23 2024, 5:37 AM
Unknown Object (File)
Mar 23 2024, 5:37 AM
Unknown Object (File)
Mar 23 2024, 5:24 AM
Unknown Object (File)
Jan 23 2024, 3:57 PM
Unknown Object (File)
Dec 22 2023, 11:34 PM
Unknown Object (File)
Dec 10 2023, 2:52 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