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

Support using ld.gold as the linker #6

Open
redneb opened this issue Jun 11, 2019 · 1 comment
Open

Support using ld.gold as the linker #6

redneb opened this issue Jun 11, 2019 · 1 comment

Comments

@redneb
Copy link
Owner

redneb commented Jun 11, 2019

Currently, the musl based ghc binaries provided by this repo are configured using the --disable-ld-override flag, which forces ghc to be built with the GNU ld instead of ld.gold. It also instructs ghc to use GNU ld as it's linker. The reason that we do that, is because when ld.gold is used, the build process fails. Also, when ghc is built with GNU ld (so that the build succeeds) but then is instructed to use ld.gold as its linker, the binaries that it produces segfault immediately at startup.

@nh2 has filed an upstream bug that seems to describe the same issue.

@redneb
Copy link
Owner Author

redneb commented Jun 12, 2019

There is also a ghc bug about this.

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

1 participant