Skip to content
Permalink
Browse files
HBSD: Do not enable RETPOLINE if LLD_UNSAFE or USE_GCC is set
Signed-off-by:	Shawn Webb <shawn.webb@hardenedbsd.org>
Sponsored-by:	SoldierX
  • Loading branch information
lattera committed Mar 31, 2018
1 parent 6887bb2 commit e57638c
Showing 1 changed file with 2 additions and 1 deletion.
@@ -292,7 +292,8 @@ OPTIONS_GROUP_HARDENING+=CFI
.if ${HARDENING_OFF:Mretpoline} == ""

.if ${OSVERSION} >= 1200055 && ${HBSDVERSION} >= 1200057 \
&& ${ARCH} == "amd64" && ${LLD_IS_LD} == "yes"
&& ${ARCH} == "amd64" && ${LLD_IS_LD} == "yes" \
&& !defined(LLD_UNSAFE) && !defined(USE_GCC)

retpoline_ARGS?= auto

0 comments on commit e57638c

Please sign in to comment.