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

Remove deprecated --add-needed linker flag #218

Merged
merged 1 commit into from Jun 8, 2022

Conversation

thrifty-txt
Copy link
Contributor

@thrifty-txt thrifty-txt commented Jun 1, 2022

Resolves #204

The --add-needed linker flag is not supported by the LLD and Gold linkers, and moreover from what I can tell it doesn't actually serve much of a purpose.

I compiled efivar on Gentoo with --add-needed and with a patch to remove it, and the checksums of the resulting libraries were the same.

If there's any reason that I'm missing for keeping this flag in, please let me know.

Unfortunately this patch still doesn't allow for efivar to be compiled with Clang + LLD, as we get a new error: ld.lld: error: unable to insert .data after .data

Resolves rhboot#204
Signed-off-by: Ali Abdel-Qader <abdelqaderali@protonmail.com>
@frozencemetery frozencemetery merged commit b23aba1 into rhboot:main Jun 8, 2022
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

Successfully merging this pull request may close these issues.

efivar-38: ld.lld: error: unknown argument '--add-needed'
2 participants