-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove the use of -use-gnu-stack
when BOLTing LLVM
#109945
Conversation
This flag (counterintuitively) was removing the `GNU_STACK` ELF attribute, which caused the optimized `libLLVM.so` file to be flagged as having an executable stack on SELinux.
(rustbot has picked a reviewer for you, use r? to override) |
This is weird.. The description of the flag is indeed very confusing. https://github.com/llvm/llvm-project/blob/09ab1f335bce8bb4d14c28b9adad6d3bec8dfed9/bolt/docs/OptimizingClang.md?plain=1#L68 Even the BOLT docs use |
Yeah the name of the flag is weird. I asked about this on the BOLT Discord: https://discord.com/channels/636084430946959380/930647188944613406/1092884016627200081 |
Summary from discord: @bors try |
⌛ Trying commit c32953f with merge 7a2984f94b9b2cc9bcbfc178ffaec12878b7fd65... |
☀️ Try build successful - checks-actions |
@rust-timer build 7a2984f94b9b2cc9bcbfc178ffaec12878b7fd65 |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (7a2984f94b9b2cc9bcbfc178ffaec12878b7fd65): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
Seems like it all still works, great! |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (90a9f69): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
This flag was (counterintuitively) removing the
GNU_STACK
ELF attribute, which caused the optimizedlibLLVM.so
file to be flagged as having an executable stack on SELinux.Removing the flag might cause issues with
strip
. I'm not aware that we're strippinglibLLVM.so
though. Does it happen anywhere?Fixes: #105783