]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce src.conf knob to build userland with retpoline
authorEd Maste <emaste@FreeBSD.org>
Tue, 20 Nov 2018 20:16:03 +0000 (20:16 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 20 Nov 2018 20:16:03 +0000 (20:16 +0000)
commitf8a6e93c1db5768ad6df1f13f5f2276e2660ddb7
tree036a62eac28ae33eb1f1fb64925a6a86024eda73
parentca81b65fcbe6bc489b06abec032ea2ea8546ed71
Introduce src.conf knob to build userland with retpoline

MFC r339511: Introduce src.conf knob to build userland with retpoline

WITH_RETPOLINE enables -mretpoline vulnerability mitigation in userland
for CVE-2017-5715.

MFC r340099: libcompat: disable retpoline when building build tools

These are built with the host toolchain which may not support retpoline.
While here, move the MK_ overrides to a separate line and sort them
alphabetically to support future changes.

MFC r340650: Avoid retpolineplt with static linking

Statically linked binaries linked with -zretpolineplt crash at startup
as lld produces a broken PLT.

MFC r340652: rescue: set NO_SHARED in Makefile

The rescue binary is built statically via the Makefile generated by
crunchgen, but that does not trigger other shared/static logic in
bsd.prog.mk - in particular

PR: 233336
Reported by: Peter Malcom (r339511), Charlie Li (r340652)
Approved by: re (gjb, early MFC)
Sponsored by: The FreeBSD Foundation
Makefile.inc1
Makefile.libcompat
rescue/rescue/Makefile
share/mk/bsd.lib.mk
share/mk/bsd.opts.mk
share/mk/bsd.prog.mk
tools/build/options/WITH_RETPOLINE [new file with mode: 0644]