Rather than creating a separate ".rdata" section distinct from the
customary ".rodata" in ELF, ".rdata" switches to the ".rodata"
section.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I chose to just map .rdata to .rodata since that is what binutils appears to do for MIPS ELF. binutils doesn't appear to set SHF_MIPS_GPREL so I'm not sure if that should be set as it is for .sdata and .sbss. Having a separate .rdata from .rodata probably isn't the end of the world if that is more correct.
Comment Actions
LGTM. .rdata is the SGI pseudo op equivalent of the ELF .rodata.
Nit: The test should be in test/MC/Mips/mips-rdata.s
The SHF_MIPS_GPREL flag is set when a section is called "srdata" but there is no pseudo-op support for that. That's irrelevant to this patch though.
Do you need me to commit this for you?
test/CodeGen/Mips/mips-rdata.s | ||
---|---|---|
1–13 ↗ | (On Diff #103382) | This file belongs in test/MC/Mips/mips-rdata.s |