diff options
author | Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au> | 2000-01-22 19:49:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2000-01-22 19:49:21 +0000 |
commit | e8c3586ab810c1806d10074799514372ca29672c (patch) | |
tree | 32ca6123fa3f650f20b8e9974c56cee0d9dfbfc2 /gcc/config/elfos.h | |
parent | 37b80d2e0220b802ff4c122f700711dfad634bb6 (diff) | |
download | gcc-e8c3586ab810c1806d10074799514372ca29672c.tar.gz |
Fix definition of UNIQUE_SECTION so that zero initialised data is placed
into .data.
From-SVN: r31563
Diffstat (limited to 'gcc/config/elfos.h')
-rw-r--r-- | gcc/config/elfos.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 8476c2bff2a..102195493d3 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -359,23 +359,22 @@ dtors_section () \ const char *name; \ char *string; \ const char *prefix; \ - static const char *prefixes[4][2] = \ + static const char *prefixes[/*4*/3][2] = \ { \ { ".text.", ".gnu.linkonce.t." }, \ { ".rodata.", ".gnu.linkonce.r." }, \ - { ".data.", ".gnu.linkonce.d." }, \ + { ".data.", ".gnu.linkonce.d." } \ /* Do not generate unique sections for uninitialised \ data since we do not have support for this in the \ linker scripts yet... \ - { ".bss.", ".gnu.linkonce.b." } */ \ - { "", "" } \ + ,{ ".bss.", ".gnu.linkonce.b." } */ \ }; \ \ if (TREE_CODE (DECL) == FUNCTION_DECL) \ sec = 0; \ - else if (DECL_INITIAL (DECL) == 0 \ + /* else if (DECL_INITIAL (DECL) == 0 \ || DECL_INITIAL (DECL) == error_mark_node) \ - sec = 3; \ + sec = 3; */ \ else if (DECL_READONLY_SECTION (DECL, RELOC)) \ sec = 1; \ else \ |