From: Michael Meissner Date: Tue, 20 Aug 1996 22:54:13 +0000 (+0000) Subject: If -mrelocatable{,-lib} make read/write sections, not read-only X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc5aa58ba9935e009caf9e0918fbdc68db72c2ba;p=gcc.git If -mrelocatable{,-lib} make read/write sections, not read-only From-SVN: r12665 --- diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 940da5a4823..17da1c81e74 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -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"; \