]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
varasm.c (default_unique_section_1): Use special section names for SECCAT_DATA_REL...
authorJakub Jelinek <jakub@redhat.com>
Thu, 15 Dec 2005 22:33:15 +0000 (23:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 15 Dec 2005 22:33:15 +0000 (23:33 +0100)
* varasm.c (default_unique_section_1): Use special section
names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.

From-SVN: r108602

gcc/ChangeLog
gcc/varasm.c

index 497f426387b604b0648e77d38d690e413f920744..12f1bc941cc6c05ba5ad83897eae7fef7d82caba 100644 (file)
@@ -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
index 32890c8d96f7cca2b93dcc5d9897164505d28ab5..82c2df32c14f7743cbfff82a93d996aa7e3502d5 100644 (file)
@@ -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.";