mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Text sections should have 'exec' flag set. This seems to unbreak libstdc++ on linux.
Patch by Dmitry Gorbachev! llvm-svn: 79334
This commit is contained in:
parent
0961ce48c4
commit
d2d8c91b9f
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user