If -mrelocatable{,-lib} make read/write sections, not read-only
authorMichael Meissner <meissner@gcc.gnu.org>
Tue, 20 Aug 1996 22:54:13 +0000 (22:54 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Tue, 20 Aug 1996 22:54:13 +0000 (22:54 +0000)
From-SVN: r12665

gcc/config/rs6000/sysv4.h

index 940da5a4823d41a3d1687ad478b5384cb0c79033..17da1c81e74b0a3d7a5e2961a7f955753800473a 100644 (file)
@@ -874,7 +874,7 @@ do {                                                                        \
                                                                        \
   if (DECL && TREE_CODE (DECL) == FUNCTION_DECL)                       \
     type = SECT_EXEC, mode = "ax";                                     \
-  else if (DECL && TREE_READONLY (DECL))                               \
+  else if (DECL && TREE_READONLY (DECL) && !TARGET_RELOCATABLE)                \
     type = SECT_RO, mode = "a";                                                \
   else                                                                 \
     type = SECT_RW, mode = "aw";                                       \