-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
BOLT triggers assert with mold's synthetic $plt symbol #58498
Comments
Here's a small binary generated from mold's test suite that should reproduce the issue (you can run it to produce the binary by yourself too). Note that we have pending fixes for bugs on the mold side (rui314/mold#798, now merged) but this small scale test case is not affected by that. |
EugeneZelenko
added
BOLT
crash
Prefer [crash-on-valid] or [crash-on-invalid]
and removed
new issue
labels
Oct 20, 2022
@llvm/issue-subscribers-bolt |
Thanks for letting know. I'll take a look. |
sid8123
pushed a commit
to sid8123/llvm-project
that referenced
this issue
Oct 25, 2022
mold linker creates symbols for PLT entries and that caught BOLT by surprise. Add the support for marked PLT entries. Fixes: llvm#58498 Reviewed By: yota9 Differential Revision: https://reviews.llvm.org/D136655
virnarula
pushed a commit
to virnarula/llvm-project
that referenced
this issue
Nov 2, 2022
mold linker creates symbols for PLT entries and that caught BOLT by surprise. Add the support for marked PLT entries. Fixes: llvm#58498 Reviewed By: yota9 Differential Revision: https://reviews.llvm.org/D136655
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We're trying out BOLT compatibility at rui314/mold#789. During testing we discovered the following assert:
It looks like BOLT apparently doesn't like the synthetic PLT symbols mold creates (rui314/mold@a7f1e20 for implementation). The symbols are synthesized to ease looking at the disassembly, and looks like this:
To my understanding the mere existence of these local symbols should not prevent BOLT from functioning correctly, so we would like to get this fixed on BOLT side. However, if there's a legitimate reason that these symbols might affect BOLT's operation, we would be more than happy to consider other options to work around this in mold.
(cc @rui314)
The text was updated successfully, but these errors were encountered: