diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-12-15 23:33:15 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-12-15 23:33:15 +0100 |
commit | 0a942feac9601eb56861a3b6b7774119d32f95d1 (patch) | |
tree | c0b3cb9bf89da80e4b85af9ec656d39a33d51da8 /gcc | |
parent | 69c120dd33cb1055e812045e5b67d4212107841f (diff) | |
download | gcc-0a942feac9601eb56861a3b6b7774119d32f95d1.zip gcc-0a942feac9601eb56861a3b6b7774119d32f95d1.tar.gz gcc-0a942feac9601eb56861a3b6b7774119d32f95d1.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/varasm.c | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 497f426..12f1bc9 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 32890c8..82c2df3 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."; |