Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753604AbdFSSvd (ORCPT ); Mon, 19 Jun 2017 14:51:33 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:36611 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbdFSSis (ORCPT ); Mon, 19 Jun 2017 14:38:48 -0400 From: Matthias Kaehlcke To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "H . J . Lu" , David Woodhouse , Masahiro Yamada , Michal Marek Cc: x86@kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Davidson , Greg Hackmann , Nick Desaulniers , Stephen Hines , Kees Cook , Arnd Bergmann , Bernhard.Rosenkranzer@linaro.org, Peter Foley , Behan Webster , Douglas Anderson , Matthias Kaehlcke Subject: [PATCH v4 0/3] x86: stack alignment for boot code and clang Date: Mon, 19 Jun 2017 11:37:54 -0700 Message-Id: <20170619183757.124992-1-mka@chromium.org> X-Mailer: git-send-email 2.13.1.518.g3df882009-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 23 This series fixes an issue with the stack of the x86 boot code not being aligned as intended. Further it adapts the Makefile to account for the fact that clang uses a different option to configure the stack alignment than gcc (-mstack-alignment=N vs -mpreferred-stack-boundary=N) Collaterally the series adds the new kbuild macro __cc-option and refactors the macros cc-option and hostcc-option to make use of __cc-option. Matthias Kaehlcke (3): kbuild: Add __cc-option macro x86/build: Use __cc-option for boot code compiler options x86/build: Specify stack alignment for clang Makefile | 2 +- arch/x86/Makefile | 33 +++++++++++++++++++++++++-------- scripts/Kbuild.include | 14 ++++++++++++-- scripts/Makefile.host | 6 ------ 4 files changed, 38 insertions(+), 17 deletions(-) -- 2.13.1.518.g3df882009-goog