-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
[X86] fdata-sections not work #133066
Comments
@llvm/issue-subscribers-backend-x86 Author: Luke (LukeSTM)
https://godbolt.org/z/357ro6MK3
demo:
|
I'm not sure what I'm supposed to be seeing in the readelf dumps? Can you explain what you're not seeing that you expect? |
I think he means the difference of rodata |
I think that @topperc is right - the relocation list doesn't really give much. The symbol list is going to be more useful to see what is being emitted where. |
compile with -O2 -ffunction-sections -fdata-sections, i think in llvm x86 readelf dump should have a symbol .rodata..L__const.do_some_test.tmp_str like llvm aarch64 readelf dump llvm x86 llvm aarch64 gcc x86 |
The question is why the declaration |
I have a question. Since constant strings can be treated as instructions, why is the rodata section of constant strings still retained when using the fdata-section option? |
CC @MaskRay |
https://godbolt.org/z/357ro6MK3
demo:
The text was updated successfully, but these errors were encountered: