[Bug target/95637] Read-only data assigned to `.sdata' rather than `.rodata'

macro@linux-mips.org gcc-bugzilla@gcc.gnu.org
Tue Jun 23 22:58:01 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95637

--- Comment #4 from Maciej W. Rozycki <macro@linux-mips.org> ---
Sigh, I keep forgetting we don't have PC-relative memory access machine
instructions.  We could have had base=x0 encodings allocated for that,
which are otherwise of rather limited use.

Regardless, I think run-time enforcement of the immutability of constant
data is important for some use cases and possibly even required by some
programming languages (Ada?).


More information about the Gcc-bugs mailing list