From bb8239ccda349706bd7560934dabcb227f178129 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Tue, 9 Oct 2018 19:23:06 -0700 Subject: [PATCH] more DPRINTF modified: amd64-linux.elf-main.c --- src/stub/src/amd64-linux.elf-main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stub/src/amd64-linux.elf-main.c b/src/stub/src/amd64-linux.elf-main.c index 226b9930..09dc5470 100644 --- a/src/stub/src/amd64-linux.elf-main.c +++ b/src/stub/src/amd64-linux.elf-main.c @@ -131,6 +131,7 @@ static void err_exit(int a) { (void)a; // debugging convenience + DPRINTF("err_exit %%d\\n", a); exit(127); } #endif //} @@ -198,8 +199,10 @@ ERR_LAB h.b_method #endif //} ); - if (j != 0 || out_len != (nrv_uint)h.sz_unc) + if (j != 0 || out_len != (nrv_uint)h.sz_unc) { + DPRINTF("j=%%x out_len=%%x &h=%%p\\n", j, out_len, &h); err_exit(7); + } // Skip Ehdr+Phdrs: separate 1st block, not filtered if (h.b_ftid!=0 && f_unf // have filter && ((512 < out_len) // this block is longer than Ehdr+Phdrs