From d58d5c1bc3d87168b7122c05f6a9e8cb521d750f Mon Sep 17 00:00:00 2001 From: Mikhail Krichanov Date: Wed, 22 Mar 2023 17:58:05 +0300 Subject: [PATCH] ImageTool: Extended debug printings. --- BaseTools/ImageTool/ElfScan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BaseTools/ImageTool/ElfScan.c b/BaseTools/ImageTool/ElfScan.c index 79be692aa8..7f47515aaa 100644 --- a/BaseTools/ImageTool/ElfScan.c +++ b/BaseTools/ImageTool/ElfScan.c @@ -413,7 +413,7 @@ SetRelocs ( // break; default: - fprintf (stderr, "ImageTool: Unsupported ELF EM_X86_64 relocation 0x%llx\n", ELF_R_TYPE(Rel->r_info)); + fprintf (stderr, "ImageTool: Unsupported ELF EM_X86_64 relocation 0x%llx in %s\n", ELF_R_TYPE(Rel->r_info), mImageInfo.DebugInfo.SymbolsPath); return RETURN_UNSUPPORTED; } } else if (mEhdr->e_machine == EM_AARCH64) { @@ -485,7 +485,7 @@ SetRelocs ( case R_386_PC32: break; default: - fprintf (stderr, "ImageTool: Unsupported ELF EM_386 relocation 0x%x\n", ELF_R_TYPE(Rel->r_info)); + fprintf (stderr, "ImageTool: Unsupported ELF EM_386 relocation 0x%x in %s\n", ELF_R_TYPE(Rel->r_info), mImageInfo.DebugInfo.SymbolsPath); return RETURN_UNSUPPORTED; } } else if (mEhdr->e_machine == EM_ARM) { @@ -563,7 +563,7 @@ SetRelocs ( break; default: - fprintf (stderr, "ImageTool: Unsupported ELF EM_ARM relocation 0x%x\n", ELF_R_TYPE(Rel->r_info)); + fprintf (stderr, "ImageTool: Unsupported ELF EM_ARM relocation 0x%x in %s\n", ELF_R_TYPE(Rel->r_info), mImageInfo.DebugInfo.SymbolsPath); return RETURN_UNSUPPORTED; } }