mirror of
https://github.com/torvalds/linux.git
synced 2025-11-30 23:16:01 +07:00
rust: Add -fno-isolate-erroneous-paths-dereference to bindgen_skip_c_flags
It's used to work around an objtool issue since commitabb2a55722("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:abb2a55722("LoongArch: Add cflag -fno-isolate-erroneous-paths-dereference") Acked-by: Miguel Ojeda <ojeda@kernel.org> Tested-by: Mingcong Bai <jeffbai@aosc.io> Signed-off-by: Xi Ruoyao <xry111@xry111.site> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
This commit is contained in:
@@ -298,7 +298,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
|
|||||||
-fno-inline-functions-called-once -fsanitize=bounds-strict \
|
-fno-inline-functions-called-once -fsanitize=bounds-strict \
|
||||||
-fstrict-flex-arrays=% -fmin-function-alignment=% \
|
-fstrict-flex-arrays=% -fmin-function-alignment=% \
|
||||||
-fzero-init-padding-bits=% -mno-fdpic \
|
-fzero-init-padding-bits=% -mno-fdpic \
|
||||||
--param=% --param asan-%
|
--param=% --param asan-% -fno-isolate-erroneous-paths-dereference
|
||||||
|
|
||||||
# Derived from `scripts/Makefile.clang`.
|
# Derived from `scripts/Makefile.clang`.
|
||||||
BINDGEN_TARGET_x86 := x86_64-linux-gnu
|
BINDGEN_TARGET_x86 := x86_64-linux-gnu
|
||||||
|
|||||||
Reference in New Issue
Block a user