diff options
author | Scott Michel <scottm@aero.org> | 2008-11-07 11:06:44 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2008-11-07 11:06:44 +0000 |
commit | d9890dee7c27e8c2cb4314b3f64011eed0e57e1b (patch) | |
tree | 8216ce078dbec1649841a097cead0d298de80f9e | |
parent | b25baef26f03b9909b65dd5f762b38f93000445d (diff) |
CellSPU: Ensure that C strings are always put in the .rodata section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58839 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/CellSPU/SPUTargetAsmInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/CellSPU/SPUTargetAsmInfo.cpp b/lib/Target/CellSPU/SPUTargetAsmInfo.cpp index 9f62a28c0d..1b9551ab63 100644 --- a/lib/Target/CellSPU/SPUTargetAsmInfo.cpp +++ b/lib/Target/CellSPU/SPUTargetAsmInfo.cpp @@ -24,6 +24,7 @@ SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo(const SPUTargetMachine &TM) : CommentString = "#"; GlobalPrefix = ""; PrivateGlobalPrefix = ".L"; + CStringSection = ".rodata"; } /// PreferredEHDataFormat - This hook allows the target to select data |