diff options
author | H.J. Lu <hjl@gnu.org> | 2001-07-13 23:33:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2001-07-13 16:33:37 -0700 |
commit | c51f3aa110b4e8e1142668174576d12a0f443326 (patch) | |
tree | ee5697c8c0cf817d6a887a8a3077d59a53bb3387 /gcc | |
parent | 4b2dc1b2b667fac0f98963ab7ac78163720df5b9 (diff) | |
download | gcc-c51f3aa110b4e8e1142668174576d12a0f443326.zip gcc-c51f3aa110b4e8e1142668174576d12a0f443326.tar.gz gcc-c51f3aa110b4e8e1142668174576d12a0f443326.tar.bz2 |
elfos.h (UNIQUE_SECTION): Enable .bss section with the correct patch.
2001-07-13 H.J. Lu (hjl@gnu.org)
* config/elfos.h (UNIQUE_SECTION): Enable .bss section with
the correct patch.
From-SVN: r44001
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/elfos.h | 13 |
2 files changed, 10 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be99365..e68b7af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-13 H.J. Lu (hjl@gnu.org) + + * config/elfos.h (UNIQUE_SECTION): Enable .bss section with + the correct patch. + 2001-07-13 Geoffrey Keating <geoffk@redhat.com> Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13. diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index f3abe46..eef4115 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 \ |