summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2004-09-15 22:30:40 +0000
committermickey <mickey@openbsd.org>2004-09-15 22:30:40 +0000
commit0c0f29ba23869ff9d3d6b00fa4f082cb78b65141 (patch)
tree3943827d3a8732c7c2740e71c7fe282436f58d74
parentavoid aliasing against libc symbols (diff)
downloadwireguard-openbsd-0c0f29ba23869ff9d3d6b00fa4f082cb78b65141.tar.xz
wireguard-openbsd-0c0f29ba23869ff9d3d6b00fa4f082cb78b65141.zip
better check for ro/data section allocation
-rw-r--r--gnu/usr.bin/gcc/gcc/config/pa/pa.c4
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 ();