------- Comment #6 from dtemirbulatov at gmail dot com 2007-05-02 16:25 ------- workaround for the bug: --- gcc/varasm.c-orig 2007-05-02 19:15:04.000000000 +0400 +++ gcc/varasm.c 2007-05-02 19:16:17.000000000 +0400 @@ -5519,6 +5519,8 @@ decl_readonly_section (tree decl, int re case SECCAT_RODATA_MERGE_STR_INIT: case SECCAT_RODATA_MERGE_CONST: case SECCAT_SRODATA: + case SECCAT_DATA_REL_RO: + case SECCAT_DATA_REL_RO_LOCAL: return true; break; default:
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31490