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

Linking issue with cargo-auditable #249

Open
astro opened this issue May 5, 2023 · 2 comments
Open

Linking issue with cargo-auditable #249

astro opened this issue May 5, 2023 · 2 comments

Comments

@astro
Copy link

astro commented May 5, 2023

The nixpkgs repository recently turned on https://github.com/rust-secure-code/cargo-auditable for their Rust packages. It had to be disabled for this project due to its non-standard linker configuration.

@retrage
Copy link
Contributor

retrage commented May 5, 2023

It requires to use custom linker scripts and settings because it’s not a standard user space program. I’m not familiar with cargo-auditable, but it seems to add a custom ELF section for storing the binary metadata for reproducible build. If you want to add support for this tool, you need to add a special ELF section to the linker scripts.

@retrage
Copy link
Contributor

retrage commented May 5, 2023

NixOS/nixpkgs#228106 (comment) I see. The problem is that the hard-coded ld.lld in the build script. Please create a small PR to replace it without breaking current CI.

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

2 participants