diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-09-15 22:30:41 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-09-15 22:30:41 +0000 |
commit | 0cd29157ce53080f1f7c679d3fb9b9734479467f (patch) | |
tree | a28042cc1cb2efe2166dc6e6456e07521e6d0efa | |
parent | 7d61e7369c8ae985c82e72517c0bc34a8b08dda4 (diff) |
better check for ro/data section allocation
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/pa/pa.c | 4 |
1 files 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 (); |