[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The linker flags in SDK environment miss the hardfloat tune for armhf architecture #447

Open
seb-832 opened this issue Jun 22, 2024 · 0 comments

Comments

@seb-832
Copy link
seb-832 commented Jun 22, 2024

Version(s) of meta-rust

1.75

Version(s) of poky and/or oe-core

kirkstone

Expected result

hello world binary should link with ld-linux-armhf.so.3

Actual result

hello world binary links with ld-linux.so.3

Steps to reproduce

  • Create a yocto SDK for an armhf architecture with TOOLCHAIN_HOST_TASK += "packagegroup-rust-cross-canadian-${MACHINE}"
  • Install the generated SDK and source the environment-setup
  • Create a hello world application
cargo new hello_world
cd hello_world
cargo build

The build completes using the correct arm target from the SDK environment but the output binary dynamically links with ld-linux.so.3 instead of ld-linux-armhf.so.3

I fixed that adding -C link-arg=-mfloat-abi=hard in the RUSTFLAGS environment variable but it would be nice to have that done at Yocto SDK generation

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

No branches or pull requests

1 participant