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:
parent
2a83635337
commit
36ef435eca
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue