Re: [tip:x86/pti] objtool, retpolines: Integrate objtool with retpoline support more closely

From: David Woodhouse
Date: Wed Feb 21 2018 - 06:00:26 EST


On Wed, 2018-02-21 at 02:34 -0800, tip-bot for Peter Zijlstra wrote:
>
> --- a/Makefile
> +++ b/Makefile
> @@ -489,6 +489,11 @@ KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
> ÂKBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
> Âendif
> Â
> +ifneq ($(call cc-option,-mindirect-branch=thunk-extern -mindirect-branch-register),)
> +Â CC_HAS_RETPOLINE := 1
> +endif
> +export CC_HAS_RETPOLINE
> +

That isn't the same as the check in arch/x86/Makefile.

Attachment: smime.p7s
Description: S/MIME cryptographic signature