Commit 2cf072fc by Nick Clifton

oops - omitted from previous delta fixing UNIQUE_SECTION

From-SVN: r31737
parent ee7f72e4
...@@ -59,23 +59,22 @@ Boston, MA 02111-1307, USA. */ ...@@ -59,23 +59,22 @@ Boston, MA 02111-1307, USA. */
char *name; \ char *name; \
char *string; \ char *string; \
char *prefix; \ char *prefix; \
static char *prefixes[4][2] = \ static char *prefixes[/*4*/3][2] = \
{ \ { \
{ ".text.", ".gnu.linkonce.t." }, \ { ".text.", ".gnu.linkonce.t." }, \
{ ".rodata.", ".gnu.linkonce.r." }, \ { ".rodata.", ".gnu.linkonce.r." }, \
{ ".data.", ".gnu.linkonce.d." }, \ { ".data.", ".gnu.linkonce.d." } \
/* Do not generate unique sections for uninitialised \ /* Do not generate unique sections for uninitialised \
data since we do not have support for this in the \ data since we do not have support for this in the \
linker scripts yet... \ linker scripts yet... \
{ ".bss.", ".gnu.linkonce.b." } */ \ , { ".bss.", ".gnu.linkonce.b." } */ \
{ "", "" } \
}; \ }; \
\ \
if (TREE_CODE (DECL) == FUNCTION_DECL) \ if (TREE_CODE (DECL) == FUNCTION_DECL) \
sec = 0; \ sec = 0; \
else if (DECL_INITIAL (DECL) == 0 \ /* else if (DECL_INITIAL (DECL) == 0 \
|| DECL_INITIAL (DECL) == error_mark_node) \ || DECL_INITIAL (DECL) == error_mark_node) \
sec = 3; \ sec = 3; */ \
else if (DECL_READONLY_SECTION (DECL, RELOC)) \ else if (DECL_READONLY_SECTION (DECL, RELOC)) \
sec = 1; \ sec = 1; \
else \ else \
......
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