Commit b7191cb5 by Michael Meissner

Don't put relocatable items into .text if -pic-lib.

From-SVN: r4163
parent 2def7888
......@@ -288,19 +288,25 @@ do \
while (0)
#undef SELECT_SECTION
#define SELECT_SECTION(DECL,RELOC) \
#define SELECT_SECTION(DECL, RELOC) \
{ \
if (TREE_CODE (DECL) == STRING_CST) \
if (RELOC && HALF_PIC_P ()) \
data_section (); \
\
else if (TREE_CODE (DECL) == STRING_CST) \
{ \
if (flag_writable_strings) \
data_section (); \
else \
readonly_data_section (); \
} \
\
else if (TREE_CODE (DECL) != VAR_DECL) \
readonly_data_section (); \
\
else if (!TREE_READONLY (DECL)) \
data_section (); \
\
else \
readonly_data_section (); \
}
......
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