$OpenBSD: patch-gcc_config_pa_pa_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
--- gcc/config/pa/pa.c.orig	Sun Jul 25 20:53:31 2004
+++ gcc/config/pa/pa.c	Mon Jan  3 10:17:43 2005
@@ -8359,11 +8359,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 ();
