[PATCH] D55407: [COFF]Correct .eh_frame name, let llvm tools such as llvm-dwarfdump can dump .eh_frame info
Peiyuan Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 6 19:57:30 PST 2018
SquallATF created this revision.
SquallATF added a reviewer: mstorsjo.
Herald added subscribers: llvm-commits, JDevlieghere.
Repository:
rL LLVM
https://reviews.llvm.org/D55407
Files:
lib/Object/COFFObjectFile.cpp
Index: lib/Object/COFFObjectFile.cpp
===================================================================
--- lib/Object/COFFObjectFile.cpp
+++ lib/Object/COFFObjectFile.cpp
@@ -1063,6 +1063,10 @@
// Not null terminated, use all 8 bytes.
Name = StringRef(Sec->Name, COFF::NameSize);
+ // COFF .eh_frame section named .eh_fram
+ if (Name.equals(".eh_fram"))
+ Name = StringRef(".eh_frame");
+
// Check for string table entry. First byte is '/'.
if (Name.startswith("/")) {
uint32_t Offset;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55407.177103.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181207/41c7b01a/attachment.bin>
More information about the llvm-commits
mailing list