diff options
Diffstat (limited to 'lld/ELF/SyntheticSections.cpp')
-rw-r--r-- | lld/ELF/SyntheticSections.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index dadc9cae04f..6bd195f2fb4 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -537,14 +537,7 @@ template <class ELFT> void EhFrameSection<ELFT>::finalizeContents() { Off += alignTo(Fde->size(), sizeof(uintX_t)); } } - - // Add a CIE record of length 0 as a terminator. While the relevant - // standards don't explicitly require such a terminator, ld.bfd and - // ld.gold always seem to add one and some unwiders rely on its - // presence. It also prevents us from generating a .eh_frame section - // with zero Call Frame Information records, which isn't allowed by - // the LSB standard. - this->Size = Off + 4; + this->Size = Off; } template <class ELFT> static uint64_t readFdeAddr(uint8_t *Buf, int Size) { |