]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MF12 r340697: Introduce src.conf knob to build userland with retpoline
authoremaste <emaste@FreeBSD.org>
Thu, 22 Nov 2018 18:59:05 +0000 (18:59 +0000)
committeremaste <emaste@FreeBSD.org>
Thu, 22 Nov 2018 18:59:05 +0000 (18:59 +0000)
commit8dcb1d093eaa01d542d2c7f955d15ddf693658f2
treef9b2340596a72e846821fed7e22673ff9a7d0f5b
parent1a6cbf23692806862e883edc65e8c21986ed0c13
MF12 r340697: 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 (kib)
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]