-
Notifications
You must be signed in to change notification settings - Fork 2
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
Avoid .text.startup #2
base: main
Are you sure you want to change the base?
Conversation
Another text section will trigger assertion failure, see https://github.com/JuliaLang/julia/blob/c609e9a22a17bef858559ca707cb985d770935aa/src/cgmemmgr.cpp#L861
Could you elaborate a bit more about how |
If you check what sections are generated by inspecting Note: you will need to trace |
Thanks for the link. That explains why/how the |
I think I found the reason. Just several lines above that line, there is a comment:
|
for (auto &GF : jl_Module) { | ||
if (GF.getSection() == ".text.startup") { | ||
GF.setSection(""); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is probably another way to fix the libunwind issue. But if we compromise on Julia's implementation, do we need to ignore other sections? like:
for (auto &GF : jl_Module) {
if (GF.getSection() != ".text") {
GF.setSection("");
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a valid choice, I just want to be conservative here. I think we can delay this until more tests are passed.
Another text section will trigger assertion failure, see https://github.com/JuliaLang/julia/blob/c609e9a22a17bef858559ca707cb985d770935aa/src/cgmemmgr.cpp#L861