mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-22 02:05:01 +00:00
We need to put any kind of data with a relocation into a
not-readonly segment on darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0386f01e06
commit
a07b750405
@ -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…
x
Reference in New Issue
Block a user