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

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jun 28 10:40:29 GMT 2020


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-06-28

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> 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?).

No, not in Ada, and I don't really see how this could be done as languages are
usually specified in terms of an abstract machine; it's pure ABI stuff.


More information about the Gcc-bugs mailing list