summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-15 22:33:15 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-15 22:33:15 +0000
commit3ec5e42bdcad8fa33d1ea66c4dbc88740280f46e (patch)
treec0b3cb9bf89da80e4b85af9ec656d39a33d51da8
parentb62dcc32605c14d893ddffc5f10b9962e12d6fa5 (diff)
downloadgcc-3ec5e42bdcad8fa33d1ea66c4dbc88740280f46e.tar.gz
* varasm.c (default_unique_section_1): Use special section
names for SECCAT_DATA_REL{,_RO}{,_LOCAL}. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108602 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/varasm.c11
2 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 497f426387b..12f1bc941cc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-15 Jakub Jelinek <jakub@redhat.com>
+
+ * varasm.c (default_unique_section_1): Use special section
+ names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
+
2005-12-16 Ben Elliston <bje@au.ibm.com>
* doc/invoke.texi (Warning Options): Document -Walways-true being
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 32890c8d96f..82c2df32c14 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -5320,11 +5320,20 @@ default_unique_section_1 (tree decl, int reloc, int shlib)
prefix = one_only ? ".gnu.linkonce.s2." : ".sdata2.";
break;
case SECCAT_DATA:
+ prefix = one_only ? ".gnu.linkonce.d." : ".data.";
+ break;
case SECCAT_DATA_REL:
+ prefix = one_only ? ".gnu.linkonce.d.rel." : ".data.rel.";
+ break;
case SECCAT_DATA_REL_LOCAL:
+ prefix = one_only ? ".gnu.linkonce.d.rel.local." : ".data.rel.local.";
+ break;
case SECCAT_DATA_REL_RO:
+ prefix = one_only ? ".gnu.linkonce.d.rel.ro." : ".data.rel.ro.";
+ break;
case SECCAT_DATA_REL_RO_LOCAL:
- prefix = one_only ? ".gnu.linkonce.d." : ".data.";
+ prefix = one_only ? ".gnu.linkonce.d.rel.ro.local."
+ : ".data.rel.ro.local.";
break;
case SECCAT_SDATA:
prefix = one_only ? ".gnu.linkonce.s." : ".sdata.";