From e61ada944d32b4e44a2df9c11154587a80ba86e4 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Wed, 25 Oct 2017 21:32:17 -0700 Subject: [PATCH] debug info for shared library on stderr under "-D" modified: p_lx_elf.cpp --- src/p_lx_elf.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index 5bcaaa6c..aae9adad 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -1774,6 +1774,10 @@ bool PackLinuxElf32::canPack() goto abandon; } xct_off = elf_get_offset_from_address(xct_va); + if (opt->debug.debug_level) { + fprintf(stderr, "shlib canPack: xct_va=%#lx xct_off=%lx\n", + (long)xct_va, (long)xct_off); + } goto proceed; // But proper packing depends on checking xct_va. } else @@ -1934,6 +1938,10 @@ PackLinuxElf64::canPack() goto abandon; } xct_off = elf_get_offset_from_address(xct_va); + if (opt->debug.debug_level) { + fprintf(stderr, "shlib canPack: xct_va=%#lx xct_off=%lx\n", + (long)xct_va, (long)xct_off); + } goto proceed; // But proper packing depends on checking xct_va. } else