Skip to content

allow use of version scripts in ld wrapper #160

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

Closed
ZachBacon opened this issue Oct 17, 2020 · 3 comments
Closed

allow use of version scripts in ld wrapper #160

ZachBacon opened this issue Oct 17, 2020 · 3 comments

Comments

@ZachBacon
Copy link

would it be possible to include in the ld wrapper for version scripts? Certain projects like libffi make use of version scripts when building the shared libs.

@ZachBacon
Copy link
Author

basically I meant to include that libffi error's out at
lld: error: unknown argument: --version-script

@mstorsjo
Copy link
Owner

would it be possible to include in the ld wrapper for version scripts?

What ld wrapper do you refer to?

Version script support isn't entirely trivial; they can contain various glob patterns, and the syntax is complex. While it would be nice to have it supported, it has so far always been easier to work around it somehow, see #65 (comment) for a discussion on how to go about implementing it in lld.

For libffi, passing --disable-symvers should avoid the issue altogether.

@ZachBacon
Copy link
Author

Gotcha, thanks.

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