From 0cd29157ce53080f1f7c679d3fb9b9734479467f Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 15 Sep 2004 22:30:41 +0000 Subject: better check for ro/data section allocation --- gnu/usr.bin/gcc/gcc/config/pa/pa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/gcc/gcc/config/pa/pa.c b/gnu/usr.bin/gcc/gcc/config/pa/pa.c index 46318f64c23..efd93171d80 100644 --- a/gnu/usr.bin/gcc/gcc/config/pa/pa.c +++ b/gnu/usr.bin/gcc/gcc/config/pa/pa.c @@ -8343,11 +8343,11 @@ pa_select_section (exp, reloc, align) && DECL_INITIAL (exp) && (DECL_INITIAL (exp) == error_mark_node || TREE_CONSTANT (DECL_INITIAL (exp))) - && !reloc) + && !(reloc && flag_pic)) readonly_data_section (); else if (TREE_CODE_CLASS (TREE_CODE (exp)) == 'c' && !(TREE_CODE (exp) == STRING_CST && flag_writable_strings) - && !reloc) + && !(reloc && flag_pic)) readonly_data_section (); else data_section (); -- cgit v1.2.3