mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 17:32:26 +00:00
- fix augmentation length bug
This commit is contained in:
parent
b428136866
commit
83c011740c
1 changed files with 1 additions and 5 deletions
|
@ -422,15 +422,13 @@ static void WriteCIE(TArray<uint8_t> &stream, const TArray<uint8_t> &cieInstruct
|
||||||
|
|
||||||
WriteUInt8(stream, 1); // CIE Version
|
WriteUInt8(stream, 1); // CIE Version
|
||||||
WriteUInt8(stream, 'z');
|
WriteUInt8(stream, 'z');
|
||||||
//WriteUInt8(stream, 'L'); // LSDA (language specific data area)
|
|
||||||
WriteUInt8(stream, 'R'); // fde encoding
|
WriteUInt8(stream, 'R'); // fde encoding
|
||||||
WriteUInt8(stream, 0);
|
WriteUInt8(stream, 0);
|
||||||
WriteULEB128(stream, 1);
|
WriteULEB128(stream, 1);
|
||||||
WriteSLEB128(stream, -1);
|
WriteSLEB128(stream, -1);
|
||||||
WriteULEB128(stream, returnAddressReg);
|
WriteULEB128(stream, returnAddressReg);
|
||||||
|
|
||||||
WriteULEB128(stream, 2); // LEB128 augmentation size
|
WriteULEB128(stream, 1); // LEB128 augmentation size
|
||||||
//WriteUInt8(stream, 0xff); // DW_EH_PE_omit (no LSDA)
|
|
||||||
WriteUInt8(stream, 0); // DW_EH_PE_absptr (FDE uses absolute pointers)
|
WriteUInt8(stream, 0); // DW_EH_PE_absptr (FDE uses absolute pointers)
|
||||||
|
|
||||||
for (unsigned int i = 0; i < cieInstructions.Size(); i++)
|
for (unsigned int i = 0; i < cieInstructions.Size(); i++)
|
||||||
|
@ -496,8 +494,6 @@ static TArray<uint8_t> CreateUnwindInfoUnix(asmjit::CCFunc *func, unsigned int &
|
||||||
//
|
//
|
||||||
// See appendix D.6 "Call Frame Information Example" in the DWARF 5 spec.
|
// See appendix D.6 "Call Frame Information Example" in the DWARF 5 spec.
|
||||||
//
|
//
|
||||||
// Unofficial description: https://www.airs.com/blog/archives/460
|
|
||||||
//
|
|
||||||
// The CFI_Parser<A>::decodeFDE parser on the other side..
|
// The CFI_Parser<A>::decodeFDE parser on the other side..
|
||||||
// https://github.com/llvm-mirror/libunwind/blob/master/src/DwarfParser.hpp
|
// https://github.com/llvm-mirror/libunwind/blob/master/src/DwarfParser.hpp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue