[PATCH] D22954: [ELF] Allow arbitrary code alignment in .eh_frame
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 21:49:12 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL277105: [ELF] Allow arbitrary code alignment in .eh_frame (authored by phosek).
Changed prior to commit:
https://reviews.llvm.org/D22954?vs=66076&id=66078#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22954
Files:
lld/trunk/ELF/EhFrame.cpp
Index: lld/trunk/ELF/EhFrame.cpp
===================================================================
--- lld/trunk/ELF/EhFrame.cpp
+++ lld/trunk/ELF/EhFrame.cpp
@@ -117,9 +117,8 @@
StringRef Aug(reinterpret_cast<const char *>(D.begin()), AugEnd - D.begin());
D = D.slice(Aug.size() + 1);
- // Code alignment factor should always be 1 for .eh_frame.
- if (readByte(D) != 1)
- fatal("CIE code alignment must be 1");
+ // Skip code alignment factor.
+ skipLeb128(D);
// Skip data alignment factor.
skipLeb128(D);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22954.66078.patch
Type: text/x-patch
Size: 533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160729/81d1a61e/attachment.bin>
More information about the llvm-commits
mailing list