[PATCH v1 0/2] Fix objtool warnings with RUST on LoongArch

Tiezhu Yang posted 2 patches 3 weeks, 2 days ago
arch/loongarch/Kconfig  |  4 ++++
arch/loongarch/Makefile | 16 +++++++++++-----
2 files changed, 15 insertions(+), 5 deletions(-)
[PATCH v1 0/2] Fix objtool warnings with RUST on LoongArch
Posted by Tiezhu Yang 3 weeks, 2 days ago
This series is to fix objtool warnings when compiling with LLVM and
CONFIG_RUST is set, thanks WANG Rui and Miguel for your suggestions
about RUST.

The second patch uses the option -Zno-jump-tables, here is a related
discussion:

https://github.com/rust-lang/rust/pull/145974#issuecomment-3236418282

Tiezhu Yang (2):
  LoongArch: Make LTO case independent in Makefile
  LoongArch: Handle jump tables option for RUST

 arch/loongarch/Kconfig  |  4 ++++
 arch/loongarch/Makefile | 16 +++++++++++-----
 2 files changed, 15 insertions(+), 5 deletions(-)

-- 
2.42.0
Re: [PATCH v1 0/2] Fix objtool warnings with RUST on LoongArch
Posted by Huacai Chen 2 weeks ago
Applied, thanks.

Huacai

On Tue, Sep 9, 2025 at 5:27 PM Tiezhu Yang <yangtiezhu@loongson.cn> wrote:
>
> This series is to fix objtool warnings when compiling with LLVM and
> CONFIG_RUST is set, thanks WANG Rui and Miguel for your suggestions
> about RUST.
>
> The second patch uses the option -Zno-jump-tables, here is a related
> discussion:
>
> https://github.com/rust-lang/rust/pull/145974#issuecomment-3236418282
>
> Tiezhu Yang (2):
>   LoongArch: Make LTO case independent in Makefile
>   LoongArch: Handle jump tables option for RUST
>
>  arch/loongarch/Kconfig  |  4 ++++
>  arch/loongarch/Makefile | 16 +++++++++++-----
>  2 files changed, 15 insertions(+), 5 deletions(-)
>
> --
> 2.42.0
>