Commit cc5aa58b by Michael Meissner

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

From-SVN: r12665
parent 8e8ce7cb
......@@ -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"; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment