OSDN Git Service

If -mrelocatable{,-lib} make read/write sections, not read-only
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Aug 1996 22:54:13 +0000 (22:54 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Aug 1996 22:54:13 +0000 (22:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12665 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/rs6000/sysv4.h

index 940da5a..17da1c8 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";                                       \