varasm.c (default_unique_section_1): Use special section names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.

* varasm.c (default_unique_section_1): Use special section
	names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.

From-SVN: r108602
This commit is contained in:
Jakub Jelinek 2005-12-15 23:33:15 +01:00 committed by Jakub Jelinek
parent 69c120dd33
commit 0a942feac9
2 changed files with 18 additions and 4 deletions

View 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

View File

@ -5320,12 +5320,21 @@ default_unique_section_1 (tree decl, int reloc, int shlib)
prefix = one_only ? ".gnu.linkonce.s2." : ".sdata2.";
break;
case SECCAT_DATA:
case SECCAT_DATA_REL:
case SECCAT_DATA_REL_LOCAL:
case SECCAT_DATA_REL_RO:
case SECCAT_DATA_REL_RO_LOCAL:
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.rel.ro.local."
: ".data.rel.ro.local.";
break;
case SECCAT_SDATA:
prefix = one_only ? ".gnu.linkonce.s." : ".sdata.";
break;