If -mrelocatable{,-lib} make read/write sections, not read-only

From-SVN: r12665
This commit is contained in:
Michael Meissner 1996-08-20 22:54:13 +00:00
parent 8e8ce7cb7c
commit cc5aa58ba9
1 changed files with 1 additions and 1 deletions

View 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"; \