diff --git a/gnu/dist/toolchain/gcc/objc/objc-act.c b/gnu/dist/toolchain/gcc/objc/objc-act.c index a2842c8c52a5..3539f1bf41b7 100644 --- a/gnu/dist/toolchain/gcc/objc/objc-act.c +++ b/gnu/dist/toolchain/gcc/objc/objc-act.c @@ -8399,8 +8399,11 @@ handle_class_ref (chain) pushdecl (decl); rest_of_decl_compilation (decl, 0, 0, 0); - /* Make following constant read-only (why not)? */ - readonly_data_section (); + /* Make following constant read-only, if not compiling PIC. */ + if (flag_pic) + data_section(); + else + readonly_data_section (); exp = build1 (ADDR_EXPR, string_type_node, decl);