From: Scott Michel Date: Fri, 7 Nov 2008 11:06:44 +0000 (+0000) Subject: CellSPU: Ensure that C strings are always put in the .rodata section X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d9890dee7c27e8c2cb4314b3f64011eed0e57e1b;p=oota-llvm.git 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 --- diff --git a/lib/Target/CellSPU/SPUTargetAsmInfo.cpp b/lib/Target/CellSPU/SPUTargetAsmInfo.cpp index 9f62a28c0d0..1b9551ab631 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