[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7ead454c-8807-4e50-800c-5a646d88fa25@aosc.io>
Date: Wed, 15 Oct 2025 11:19:52 +0800
From: Mingcong Bai <jeffbai@...c.io>
To: Xi Ruoyao <xry111@...111.site>, Nathan Chancellor <nathan@...nel.org>
Cc: loongarch@...ts.linux.dev, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron
<bjorn3_gh@...tonmail.com>, Benno Lossin <lossin@...nel.org>,
Andreas Hindborg <a.hindborg@...nel.org>, Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>, Danilo Krummrich <dakr@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Bill Wendling <morbo@...gle.com>, Justin Stitt <justinstitt@...gle.com>,
Huacai Chen <chenhuacai@...nel.org>, Tiezhu Yang <yangtiezhu@...ngson.cn>,
"open list:RUST" <rust-for-linux@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>,
"open list:CLANG/LLVM BUILD SUPPORT:Keyword:b(?i:clang|llvm)b"
<llvm@...ts.linux.dev>
Subject: Re: [PATCH] rust: Add -fno-isolate-erroneous-paths-dereference to
bindgen_skip_c_flags
Hi Ruoyao,
在 2025/10/15 10:20, Xi Ruoyao 写道:
> It's used to work around an objtool issue since commit abb2a5572264
> ("LoongArch: Add cflag -fno-isolate-erroneous-paths-dereference"), but
> it's then passed to bindgen and cause an error because Clang does not
> have this option.
>
> Fixes: abb2a5572264 ("LoongArch: Add cflag -fno-isolate-erroneous-paths-dereference")
> Signed-off-by: Xi Ruoyao <xry111@...111.site>
> ---
> rust/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rust/Makefile b/rust/Makefile
> index 23c7ae905bd2..0676b1194a62 100644
> --- a/rust/Makefile
> +++ b/rust/Makefile
> @@ -289,7 +289,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
> -fno-inline-functions-called-once -fsanitize=bounds-strict \
> -fstrict-flex-arrays=% -fmin-function-alignment=% \
> -fzero-init-padding-bits=% -mno-fdpic \
> - --param=% --param asan-%
> + --param=% --param asan-% -fno-isolate-erroneous-paths-dereference
>
> # Derived from `scripts/Makefile.clang`.
> BINDGEN_TARGET_x86 := x86_64-linux-gnu
Tested good applied atop v6.18-rc1, which includes the aforementioned
abb2a5572264.
Tested-by: Mingcong Bai <jeffbai@...c.io>
Best Regards,
Mingcong Bai
Powered by blists - more mailing lists