If -mrelocatable{,-lib} make read/write sections, not read-only
From-SVN: r12665
This commit is contained in:
parent
8e8ce7cb7c
commit
cc5aa58ba9
|
@ -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"; \
|
||||
|
|
Loading…
Reference in New Issue