Skip to content

Add support for --(no-)undefined-version #18486

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

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

castholm
Copy link
Contributor

@castholm castholm commented Jan 8, 2024

Closes #16855 (main issue)
Closes #17326 (abandoned PR)
Closes #18255 (forked PR)

Adds support for the --(no-)undefined-version option, which permits/forbids references to undefined symbols in version scripts. The default is --no-undefined-version.

I squashed the commit history and added linker tests (with use_lld = true for now), as was requested by #17326 (comment)

@castholm castholm changed the title Add support for --(no-)undefined-version Add support for --(no-)undefined-version Jan 8, 2024
DhashS and others added 2 commits January 9, 2024 17:24
Co-authored-by: Motiejus Jakštys <[email protected]>
Co-authored-by: Jakub Konka <[email protected]>
Co-authored-by: Samuel Cantero <[email protected]>
Co-authored-by: Giorgos Georgiou <[email protected]>
Co-authored-by: Carl Åstholm <[email protected]>
@andrewrk andrewrk merged commit 7320b24 into ziglang:master Jan 9, 2024
@andrewrk
Copy link
Member

andrewrk commented Jan 9, 2024

Thanks!

@castholm castholm deleted the undefined-version branch January 9, 2024 22:56
ghost pushed a commit to uber/hermetic_cc_toolchain that referenced this pull request Jan 10, 2024
linker: support `--(no-)undefined-version`: ziglang/zig#18486
motiejus pushed a commit to uber/hermetic_cc_toolchain that referenced this pull request Jan 10, 2024
linker: support `--(no-)undefined-version`: ziglang/zig#18486
@motiejus
Copy link
Contributor

Thank you! This is quite a big deal for some hermetic_cc_toolchain users. :)

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.

unsupported linker arg: --no-undefined-version
4 participants