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

Dynamic linking for boot.binfmt.emulatedSystems #48

Open
peterwaller-arm opened this issue Mar 29, 2023 · 1 comment
Open

Dynamic linking for boot.binfmt.emulatedSystems #48

peterwaller-arm opened this issue Mar 29, 2023 · 1 comment

Comments

@peterwaller-arm
Copy link

peterwaller-arm commented Mar 29, 2023

nix-ld is nice, thanks for putting it together!

I was wondering if it would be possible to make it work for emulated binaries. The current failure (running an aarch64-linux dynamically linked binary on an x86_64-linux box) is:

qemu-aarch64: Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory

I'd need some way of pulling in the binaries for the libraries on the alternative system and support from nix-ld somewhere. Does it seem possible?

@Mic92
Copy link
Member

Mic92 commented Apr 7, 2023

yes. I think the nixos module could be extended to also to take boot.binfmt.emulatedSystems into account.

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