BaseTools/ImageTool: Improve diagnostic messages

This commit is contained in:
Vitaly Cheptsov 2025-10-29 11:10:39 +03:00
parent 4f8ce12f1e
commit 12e17b593e

View File

@ -237,7 +237,7 @@ CheckToolImageReloc (
// FIXME: Update drivers? // FIXME: Update drivers?
if (Image->HeaderInfo.Subsystem == EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER && if (Image->HeaderInfo.Subsystem == EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER &&
Segment->Write) { Segment->Write) {
printf("!!! writable reloc at %x !!!\n", Reloc->Target); printf("WARNING: Writable reloc at %x!\n", Reloc->Target);
//DEBUG_RAISE (); //DEBUG_RAISE ();
//return false; //return false;
} }
@ -311,6 +311,7 @@ CheckToolImageDebugInfo (
{ {
if (DebugInfo->SymbolsPathLen > MAX_UINT8) { if (DebugInfo->SymbolsPathLen > MAX_UINT8) {
DEBUG_RAISE (); DEBUG_RAISE ();
printf("ERROR: Debug symbol path exceeds maximum allowed range of %u bytes!\n", MAX_UINT8);
return false; return false;
} }