Re: [PATCH] x86/Makefile: make -stack-alignment conditional on LLD < 13.0.0
From: Greg KH
Date: Thu Jun 10 2021 - 06:04:27 EST
On Thu, Jun 10, 2021 at 11:28:04AM +0200, torvic9@xxxxxxxxxxx wrote:
> Since LLVM commit 3787ee4, the '-stack-alignment' flag has been dropped ,
> leading to the following error message when building a LTO kernel with
> Clang-13 and LLD-13:
> ld.lld: error: -plugin-opt=-: ld.lld: Unknown command line argument
> '-stack-alignment=8'. Try 'ld.lld --help'
> ld.lld: Did you mean '--stackrealign=8'?
> It also appears that the '-code-model' flag is not necessary anymore starting
> with LLVM-9 .
> Drop '-code-model' and make '-stack-alignment' conditional on LLD < 13.0.0.
> This is for linux-stable 5.12.
> Another patch will be submitted for 5.13 shortly (unless there are objections).
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
for how to do this properly.