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

meson: Enable linker garbage collection #508

Closed
wants to merge 1 commit into from

Conversation

wismill
Copy link
Member

@wismill wismill commented Sep 20, 2024

Alternative to #427 suggested by @bluetech.

Adapted from systemd.

I am not an expert on the topic but got curious. From gcc doc:

Only use these options when there are significant benefits from doing so. When you specify these options, the assembler and linker create larger object and executable files and are also slower. These options affect code generation. They prevent optimizations by the compiler and assembler using relative locations inside a translation unit since the locations are unknown until link time. An example of such an optimization is relaxing calls to short call instructions.

How can we tell accurately if this is interesting for us and not affecting perf?

@whot
Copy link
Contributor

whot commented Sep 20, 2024

fwiw, I generally tend to say "leave this up to the distributions". The vast majority of our install base is distribution-based packages which can make decisions for compiler flags at the distribution level. Except for warnings aimed at developers I usually don't bother.

@wismill
Copy link
Member Author

wismill commented Oct 2, 2024

Fair enough, closing.

@wismill wismill closed this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants