Skip to content

x86: stack alignment for boot code and clang

Matthias Kaehlcke linux-kbuild lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 3 repliesIn review
  2. v43 patches 6 repliesSuperseded
  3. v33 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches9 repliesSuperseded
v13 patches7 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kbuild: Add __cc-option macroMakefile scripts/Kbuild.include scripts/Makefile.host+13 -90 replies
2/3x86/build: Use __cc-option for boot code compiler optionsarch/x86/Makefile+5 -40 replies
3/3x86/build: Specify stack alignment for clangarch/x86/Makefile+21 -51 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMasahiro YamadaIngo Molnar
SeriesA-b
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] x86: stack alignment for boot code and clang

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(-)
Signature · 1 line
2.13.1.611.g7e3b11ae1-goog