1
0
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:
Anton Korobeynikov 2009-08-18 14:06:12 +00:00
parent 0961ce48c4
commit d2d8c91b9f

View File

@ -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;