linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] x86: stack alignment for boot code and clang
@ 2017-06-13 23:08 Matthias Kaehlcke
  2017-06-13 23:08 ` [PATCH v2 1/4] kbuild: Add cc-option-raw macro Matthias Kaehlcke
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Matthias Kaehlcke @ 2017-06-13 23:08 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, H . J . Lu,
	David Woodhouse, Masahiro Yamada, Michal Marek
  Cc: x86, linux-kbuild, linux-kernel, Michael Davidson, Greg Hackmann,
	Nick Desaulniers, Stephen Hines, Kees Cook, Arnd Bergmann,
	Bernhard.Rosenkranzer, Peter Foley, Behan Webster,
	Douglas Anderson, Matthias Kaehlcke

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 macros cc-option-raw and
hostcc-option, it also reworks cc-option to make use of cc-option-raw.

Matthias Kaehlcke (4):
  kbuild: Add cc-option-raw macro
  kbuild: Add hostcc-option macro
  x86/build: Use cc-option-raw for boot code compiler options
  x86/build: Specify stack alignment for clang

 Makefile               |  2 +-
 arch/x86/Makefile      | 33 +++++++++++++++++++++++++--------
 scripts/Kbuild.include | 13 +++++++++++--
 3 files changed, 37 insertions(+), 11 deletions(-)

-- 
2.13.1.518.g3df882009-goog

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-06-14 16:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 23:08 [PATCH v2 0/4] x86: stack alignment for boot code and clang Matthias Kaehlcke
2017-06-13 23:08 ` [PATCH v2 1/4] kbuild: Add cc-option-raw macro Matthias Kaehlcke
2017-06-14  1:27   ` Masahiro Yamada
2017-06-14  7:31     ` Arnd Bergmann
2017-06-14  7:44       ` Masahiro Yamada
2017-06-14  8:32       ` Michal Marek
2017-06-14 16:38         ` Matthias Kaehlcke
2017-06-13 23:08 ` [PATCH v2 2/4] kbuild: Add hostcc-option macro Matthias Kaehlcke
2017-06-14  1:28   ` Masahiro Yamada
2017-06-14  7:26   ` Arnd Bergmann
2017-06-14  7:40     ` Masahiro Yamada
2017-06-13 23:08 ` [PATCH v2 3/4] x86/build: Use cc-option-raw for boot code compiler options Matthias Kaehlcke
2017-06-13 23:08 ` [PATCH v2 4/4] x86/build: Specify stack alignment for clang Matthias Kaehlcke
2017-06-14  1:30 ` [PATCH v2 0/4] x86: stack alignment for boot code and clang Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).