projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0386f01
)
We need to put any kind of data with a relocation into a
author
Eric Christopher
<echristo@apple.com>
Thu, 7 Jan 2010 19:44:05 +0000
(19:44 +0000)
committer
Eric Christopher
<echristo@apple.com>
Thu, 7 Jan 2010 19:44:05 +0000
(19:44 +0000)
not-readonly segment on darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92933
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetLoweringObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetLoweringObjectFile.cpp
b/lib/Target/TargetLoweringObjectFile.cpp
index f887523c5b716ddea5f84630b2352c0a0c16628f..229b1d52c5e7ae9f2c5082b06b2c4406ce1efdd0 100644
(file)
--- a/
lib/Target/TargetLoweringObjectFile.cpp
+++ b/
lib/Target/TargetLoweringObjectFile.cpp
@@
-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())