mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 01:34:32 +00:00
COFF: Add IMAGE_SCN_MEM_READ to text sections.
There are currently 100 references to COFF::IMAGE_SCN in 6 files and 11 different functions. Section to attribute mapping really needs to happen in one place to avoid problems like this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
579d7a3dcc
commit
3931b54a5f
@ -952,6 +952,7 @@ getCOFFSectionFlags(SectionKind K) {
|
||||
else if (K.isText())
|
||||
Flags |=
|
||||
COFF::IMAGE_SCN_MEM_EXECUTE |
|
||||
COFF::IMAGE_SCN_MEM_READ |
|
||||
COFF::IMAGE_SCN_CNT_CODE;
|
||||
else if (K.isBSS ())
|
||||
Flags |=
|
||||
|
Loading…
Reference in New Issue
Block a user