[PATCH] D55209: [COFF] Don't mark mingw .eh_frame sections writable
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 3 12:05:17 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL348177: [COFF] Don't mark mingw .eh_frame sections writable (authored by mstorsjo, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D55209?vs=176357&id=176448#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55209/new/
https://reviews.llvm.org/D55209
Files:
llvm/trunk/lib/MC/MCObjectFileInfo.cpp
llvm/trunk/test/MC/COFF/eh-frame.s
Index: llvm/trunk/test/MC/COFF/eh-frame.s
===================================================================
--- llvm/trunk/test/MC/COFF/eh-frame.s
+++ llvm/trunk/test/MC/COFF/eh-frame.s
@@ -12,3 +12,16 @@
.cfi_endproc
// CHECK: Name: .eh_frame
+// CHECK-NEXT: VirtualSize:
+// CHECK-NEXT: VirtualAddress:
+// CHECK-NEXT: RawDataSize:
+// CHECK-NEXT: PointerToRawData:
+// CHECK-NEXT: PointerToRelocations:
+// CHECK-NEXT: PointerToLineNumbers:
+// CHECK-NEXT: RelocationCount:
+// CHECK-NEXT: LineNumberCount:
+// CHECK-NEXT: Characteristics [
+// CHECK-NEXT: IMAGE_SCN_ALIGN_4BYTES
+// CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
+// CHECK-NEXT: IMAGE_SCN_MEM_READ
+// CHECK-NEXT: ]
Index: llvm/trunk/lib/MC/MCObjectFileInfo.cpp
===================================================================
--- llvm/trunk/lib/MC/MCObjectFileInfo.cpp
+++ llvm/trunk/lib/MC/MCObjectFileInfo.cpp
@@ -479,10 +479,10 @@
}
void MCObjectFileInfo::initCOFFMCObjectFileInfo(const Triple &T) {
- EHFrameSection = Ctx->getCOFFSection(
- ".eh_frame", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
- COFF::IMAGE_SCN_MEM_READ | COFF::IMAGE_SCN_MEM_WRITE,
- SectionKind::getData());
+ EHFrameSection =
+ Ctx->getCOFFSection(".eh_frame", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
+ COFF::IMAGE_SCN_MEM_READ,
+ SectionKind::getData());
// Set the `IMAGE_SCN_MEM_16BIT` flag when compiling for thumb mode. This is
// used to indicate to the linker that the text segment contains thumb instructions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55209.176448.patch
Type: text/x-patch
Size: 1634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181203/c4afd914/attachment.bin>
More information about the llvm-commits
mailing list