]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow overriding the tool used for stripping binaries
authorarichardson <arichardson@FreeBSD.org>
Tue, 11 Aug 2020 16:46:27 +0000 (16:46 +0000)
committerarichardson <arichardson@FreeBSD.org>
Tue, 11 Aug 2020 16:46:27 +0000 (16:46 +0000)
commit52606f3c06155364b236cf239770161d980ca93f
treec76172f197eafd91fd6de98f425c8431b1550fcb
parent4986d5a3ba546d083a447e5cb11975ad3ccd131d
Allow overriding the tool used for stripping binaries

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
Reviewed By: emaste, brooks
Differential Revision: https://reviews.freebsd.org/D25988
Makefile.inc1
share/mk/sys.mk
stand/i386/loader/Makefile
sys/modules/linux/Makefile
sys/modules/linux64/Makefile