Skip to content

Conversation

xry111
Copy link
Contributor

@xry111 xry111 commented Sep 1, 2025

The "Rust + linker-plugin = LSX in main" issue may haunt all Rust binaries, even a "hello world" program is proven to be affected. So aosc-os-abbs/.../oma is just not the correct location to work it around. And disabling LTO is overly aggressive, we just need to pass an option to the linker plugin to disable LSX.

FWIW I'm unsure if we should report this as a Rustc issue.

The "Rust + linker-plugin = LSX in main" issue may haunt all Rust
binaries, even a "hello world" program is proven to be affected.  So
aosc-os-abbs/.../oma is just not the correct location to work it around.
And disabling LTO is overly aggressive, we just need to pass an option
to the linker plugin to disable LSX.

FWIW I'm unsure if we should report this as a Rustc issue.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
@MingcongBai
Copy link
Member

MingcongBai commented Sep 4, 2025

Upstream fix pending, rust-lang/rust#146144

@xry111 xry111 closed this Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants