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:
b2bacd9
)
Text sections should have 'exec' flag set. This seems to unbreak libstdc++ on linux.
author
Anton Korobeynikov
<asl@math.spbu.ru>
Tue, 18 Aug 2009 14:06:12 +0000
(14:06 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Tue, 18 Aug 2009 14:06:12 +0000
(14:06 +0000)
Patch by Dmitry Gorbachev!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79334
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 ff0180bc0f98f6d435500e3ee67939aa4a385a6a..67fbc1f6ca095e41e7bb3c993093e4692eee9825 100644
(file)
--- a/
lib/Target/TargetLoweringObjectFile.cpp
+++ b/
lib/Target/TargetLoweringObjectFile.cpp
@@
-487,6
+487,9
@@
getELFSectionFlags(SectionKind K) {
if (!K.isMetadata())
Flags |= MCSectionELF::SHF_ALLOC;
+ if (K.isText())
+ Flags |= MCSectionELF::SHF_EXECINSTR;
+
if (K.isWriteable())
Flags |= MCSectionELF::SHF_WRITE;