mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Text sections should have 'exec' flag set. This seems to unbreak libstdc++ on linux.
Patch by Dmitry Gorbachev! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b2bacd9263
commit
848c293962
@ -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…
Reference in New Issue
Block a user