-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Implement sysroot handling #419
Conversation
Right now this handles only linker scripts part based on my guess how it should work. Unfortunately I couldn't find any information in the docs but with this change integration tests fail with errors like:
So, at least linking is successful. I still need to fix |
38cf4cc
to
c5af430
Compare
Thanks for working on this! I tried patching your PR and the tests all passed for me. It's strange that ld isn't setting DT_FLAGS=0x8 (BIND_NOW), given that we should be passing Boxing a String probably isn't necessary and removing the Box will likely help to eliminate the clippy warning. |
Yeah, it's still WIP. I had started with Path, hence this Box. I haven't touched this since publishing the draft because of other things, but I'll be back to it later today. |
c5af430
to
556ccc3
Compare
So, I searched more extensively, because that sysroot application seemed dangerously broad to me and found where it's described: https://sourceware.org/binutils/docs/ld/File-Commands.html This looks mostly good now but still needs some love. I'd like to get your opinion on Tests and |
Ah, nice find, that makes sense.
Either looks fine to me. |
21b4fd0
to
126fb46
Compare
126fb46
to
17dcdad
Compare
17dcdad
to
8dec28c
Compare
Thanks for taking this on and for figuring out some of the more tricky details involved! |
Fixes #406