We need to put any kind of data with a relocation into a

not-readonly segment on darwin.

llvm-svn: 92933
This commit is contained in:
Eric Christopher 2010-01-07 19:44:05 +00:00
parent 2a83635337
commit 36ef435eca
1 changed files with 1 additions and 1 deletions

View File

@ -922,7 +922,7 @@ const MCSection *
TargetLoweringObjectFileMachO::getSectionForConstant(SectionKind Kind) const {
// If this constant requires a relocation, we have to put it in the data
// segment, not in the text segment.
if (Kind.isDataRel())
if (Kind.isDataRel() || Kind.isReadOnlyWithRel())
return ConstDataSection;
if (Kind.isMergeableConst4())