diff options
Diffstat (limited to 'contrib/llvm/tools/lld/ELF/EhFrame.cpp')
-rw-r--r-- | contrib/llvm/tools/lld/ELF/EhFrame.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm/tools/lld/ELF/EhFrame.cpp b/contrib/llvm/tools/lld/ELF/EhFrame.cpp index b130ac1..1f3d928 100644 --- a/contrib/llvm/tools/lld/ELF/EhFrame.cpp +++ b/contrib/llvm/tools/lld/ELF/EhFrame.cpp @@ -117,9 +117,8 @@ template <class ELFT> uint8_t getFdeEncoding(ArrayRef<uint8_t> D) { 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); |