diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-27 18:52:29 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-27 18:52:29 +0000 |
commit | 0f83d968525877b8d4384b1e6273985a5035d478 (patch) | |
tree | 32c4c3e7299f234a6d75ac82b5da86e612198d65 /llvm/lib/CodeGen | |
parent | fbdab0d633bf4f02baa12fb3c7360878d1c45343 (diff) | |
download | bcm5719-llvm-0f83d968525877b8d4384b1e6273985a5035d478.tar.gz bcm5719-llvm-0f83d968525877b8d4384b1e6273985a5035d478.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index cb53118ab54..6e94a13a89b 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -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 |= |