From 1187b0973187ad95a89e9a2cd151939a2599deb9 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Tue, 17 Aug 2021 12:47:11 -0400 Subject: [PATCH] fixed bug in adding sdata8 for ehwrite. --- zipr/src/ehwrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipr/src/ehwrite.cpp b/zipr/src/ehwrite.cpp index af725e48c..546d599c3 100644 --- a/zipr/src/ehwrite.cpp +++ b/zipr/src/ehwrite.cpp @@ -945,7 +945,7 @@ void ElfEhWriter_t<ptrsize>::FDErepresentation_t::LSDArepresentation_t::extend(I (tt_encoding&0xf)==0xc || // encoding contains DW_EH_PE_sdata8 ((tt_encoding&0xf)==0x0 && ptrsize==4) // encoding contains DW_EH_PE_absptr && ptrsize==4 ); - const auto tt_entry_size= ((tt_encoding&0xf)==0xb) ? 8 : 4; + const auto tt_entry_size= ((tt_encoding&0xf)==0xc) ? 8 : 4; const auto tt_index= reloc->getOffset()/tt_entry_size; if(tt_index>=(int64_t)type_table.size()) type_table.resize(tt_index+1); -- GitLab