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

vabackend: retain section from linker garbage collection #81

Merged
merged 1 commit into from
May 10, 2022

Conversation

pobrn
Copy link
Contributor

@pobrn pobrn commented May 10, 2022

The linker may remove sections that are actually used when "--gc-sections" and "-z start-stop-gc" is set. Add the retain attribute to prevent that.

See: https://lld.llvm.org/ELF/start-stop-gc.html
See: systemd/systemd#21847
See: systemd/systemd#21855

The linker may remove sections that are actually used when
"--gc-sections" and "-z start-stop-gc" is set. Add the `retain`
attribute to prevent that.

See: https://lld.llvm.org/ELF/start-stop-gc.html
See: systemd/systemd#21847
See: systemd/systemd#21855
@elFarto
Copy link
Owner

elFarto commented May 10, 2022

Hey, thanks for the continued support!

@elFarto elFarto merged commit 14e15d9 into elFarto:master May 10, 2022
@pobrn
Copy link
Contributor Author

pobrn commented May 10, 2022

Hey, thanks for the continued support!

Well, it was my idea in the first place, it's only fair.

@pobrn pobrn deleted the add_retain_attr branch May 10, 2022 21:00
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.

2 participants