efi/libstub: Only disable stackleak plugin for arm64
authorLaura Abbott <labbott@redhat.com>
Mon, 30 Jul 2018 18:31:18 +0000 (11:31 -0700)
committerWill Deacon <will.deacon@arm.com>
Tue, 31 Jul 2018 09:13:59 +0000 (10:13 +0100)
commitce279d374ff315264efcbcef75cc21b9fef8b36f
tree41c42990bcb86789bc6278ad3fe39cd5e1595c7d
parentd26de6c9f458f702b778731b7cb578ccd83623c9
efi/libstub: Only disable stackleak plugin for arm64

arm64 uses the full KBUILD_CFLAGS for building libstub as opposed
to x86 which doesn't. This means that x86 doesn't pick up
the gcc-plugins. We need to disable the stackleak plugin but
doing this unconditionally breaks x86 build since it doesn't
have any plugins. Switch to disabling the stackleak plugin for
arm64 only.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/firmware/efi/libstub/Makefile