]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - Makefile
Makefile: disable PIE before testing asm goto
authorMichal Kubecek <mkubecek@suse.cz>
Wed, 16 May 2018 05:51:36 +0000 (07:51 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 17 May 2018 13:36:40 +0000 (22:36 +0900)
commit8438ee76b004ef66d125ade64c91fc128047d244
tree3c174fe99238cf40d957fc4bb4844019226ed0a7
parentc64ba044ed57ea72cc1c7b14a8dcfb6ded5a759c
Makefile: disable PIE before testing asm goto

Since commit e501ce957a78 ("x86: Force asm-goto"), aarch64 build on
distributions which enable PIE by default (e.g. openSUSE Tumbleweed) does
not detect support for asm goto correctly. The problem is that ARM specific
part of scripts/gcc-goto.sh fails with PIE even with recent gcc versions.
Moving the asm goto detection up in Makefile put it before the place where
we disable PIE. As a result, kernel is built without jump label support.

Move the lines disabling PIE before the asm goto test to make it work.

Fixes: e501ce957a78 ("x86: Force asm-goto")
Reported-by: Andreas Faerber <afaerber@suse.com>
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile