-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Pass --enable-new-dtags to GNU ld #30394
Conversation
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
r? @alexcrichton probably. |
I'm not currently too savvy on the difference between these two options, so before I dive too much into it do you know the answers to these questions?
Thanks for the patch regardless! Seems like a good thing to tighten up |
@alexcrichton looking at linked issue, it's fairly old. It says that glibc has supported it since 1999, so the flag is likely similarly old. |
This causes the linker to emit DT_RUNPATH instead of DT_RPATH, which fixes rust-lang#30378.
Not authoritatively, but the interwebs are showing me man pages for GNU ld when I look for NetBSD, OpenBSD, or Dragonfly ld manpages, and all those manpages mention
As @Aatch mentioned, yeah, the flag was added to glibc in 1999. So it's fine for every CentOS ever. Also, even if the dynamic linker doesn't support it, the effect is that rpaths don't work but the binary is otherwise fine; it doesn't create an un-runnable binary. (That said, GNU ld used to emit both
July 2000, probably binutils 2.11 if I'm guessing right. The trouble with naming a feature "new" is that it's going to continue to be named "new" for decades. :) |
⌛ Testing commit cec2d14 with merge ef9a4df... |
💔 Test failed - auto-mac-64-opt |
@bors: retry On Fri, Dec 18, 2015 at 10:14 PM, bors notifications@github.com wrote:
|
This causes the linker to emit DT_RUNPATH instead of DT_RPATH, which fixes #30378. See that bug for rationale.
This causes the linker to emit DT_RUNPATH instead of DT_RPATH, which fixes #30378. See that bug for rationale.