mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 06:53:53 +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. llvm-svn: 117473
This commit is contained in:
parent
fc69783598
commit
bf82646290
@ -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