]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow overriding the tool used for stripping binaries
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 11 Aug 2020 16:46:27 +0000 (16:46 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Tue, 11 Aug 2020 16:46:27 +0000 (16:46 +0000)
commit1a18ab420b6098b92f3a16db68e482682a506688
treec76172f197eafd91fd6de98f425c8431b1550fcb
parentaa5dbc89530716be934372503a7132ef1c9962e2
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