diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-13 21:55:10 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-13 21:55:10 +0000 |
commit | cb52522fb904228471f1d7af076805a862864304 (patch) | |
tree | b3175fa1163f9922285e7adecc02e9fcb5ca5bfa /gcc/config/elfos.h | |
parent | b64396c983e32c84e7a5b267b90b70d9f533445c (diff) | |
download | gcc-cb52522fb904228471f1d7af076805a862864304.tar.gz |
Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43998 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/elfos.h')
-rw-r--r-- | gcc/config/elfos.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 1f556f05fc0..f3abe469b81 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -348,19 +348,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." }, \ - { ".bss.", ".gnu.linkonce.b." } \ + { ".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." } */ \ }; \ \ 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 \ |