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
druntime C parts of binary releases not built with PIC #2008
Milestone
Comments
Ah, so that's the issue the guy in the forum had. |
It seems that way. Just found it on an EC2 instance. |
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Feb 19, 2017
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Feb 19, 2017
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Feb 19, 2017
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Feb 19, 2017
dnadlinger
added a commit
to dnadlinger/ldc
that referenced
this issue
Feb 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On a fresh Ubuntu 16.10 image:
In Ubuntu 16.10 (and newer), they patched the linker to make position-independent code the default even for executables (to enable ASLR, …). As a consequence, we chose to default to PIC on Linux as well. However, this applies only to the
ldc2
output and not the C parts of the runtime – since we build on an old Ubuntu version,gcc
still defaults to non-PIC code. As a result,libdruntime-ldc.a
is incompatible with the implicit PIE default of the system linker.We need to push out a 1.1.1 release with this issue fixed.
The text was updated successfully, but these errors were encountered: