diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-13 18:28:10 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-13 18:28:10 +0000 |
commit | 90981122c952157f0e507a37e89460ed80abd978 (patch) | |
tree | 353979f2f146c9a4b20829ad141e9d06d2ec73c6 /gcc/config/elfos.h | |
parent | c7be79ca013cc10b9abb223f426ab6c3db1d0b33 (diff) | |
download | gcc-90981122c952157f0e507a37e89460ed80abd978.tar.gz |
2001-07-13 H.J. Lu (hjl@gnu.org)
* config/elfos.h (UNIQUE_SECTION): Enable .bss section.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43989 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/elfos.h')
-rw-r--r-- | gcc/config/elfos.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index f3abe469b81..1f556f05fc0 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -348,22 +348,19 @@ dtors_section () \ const char *name; \ char *string; \ const char *prefix; \ - static const char *prefixes[/*4*/3][2] = \ + static const char *prefixes[4][2] = \ { \ { ".text.", ".gnu.linkonce.t." }, \ { ".rodata.", ".gnu.linkonce.r." }, \ - { ".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." } */ \ + { ".data.", ".gnu.linkonce.d." }, \ + { ".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 \ |