From 248aa153f65866f46b5370ac2ef7dfaf3af72480 Mon Sep 17 00:00:00 2001 From: Duggapu Chinni B Date: Mon, 22 Apr 2024 21:02:47 -0700 Subject: [PATCH] IntelFsp2Pkg/PatchFv.py: FIX for GCC 32BIT build error REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4762 Map file generating 8 byte address offset is not matched with the pattern defined in patchFv tool resulting build error. Cc: Chasel Chiu Reviewed-by: Nate DeSimone Cc: Duggapu Chinni B Reviewed-by: Ashraf Ali S Cc: Ted Kuo Signed-off-by: Duggapu Chinni B --- IntelFsp2Pkg/Tools/PatchFv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IntelFsp2Pkg/Tools/PatchFv.py b/IntelFsp2Pkg/Tools/PatchFv.py index bd9aa71e3c11..d35aa1dc9f69 100644 --- a/IntelFsp2Pkg/Tools/PatchFv.py +++ b/IntelFsp2Pkg/Tools/PatchFv.py @@ -432,7 +432,7 @@ def parseModMapFile(self, moduleName, mapFile): if reportLine.strip().find("Archive member included") != -1: #GCC # 0x0000000000001d55 IoRead8 - patchMapFileMatchString = r"\s+(0x[0-9a-fA-F]{16})\s+([^\s][^0x][_a-zA-Z0-9\-]+)\s" + patchMapFileMatchString = r"\s+(0x[0-9a-fA-F]{8,16})\s+([^\s][^0x][_a-zA-Z0-9\-]+)\s" matchKeyGroupIndex = 2 matchSymbolGroupIndex = 1 prefix = '_'