IntelFsp2Pkg/PatchFv.py: Support pseudo symbol for image base

Define a pseudo symbol _IMAGE_BASE_<moduleName>_ for returnning
the PE/TE image base address.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Ted Kuo <ted.kuo@intel.com>
Cc: Ashraf Ali S <ashraf.ali.s@intel.com>
This commit is contained in:
Ray Ni
2026-01-19 17:19:08 +08:00
committed by mergify[bot]
parent 0302aa5bca
commit c666d125b0
+3
View File
@@ -489,6 +489,9 @@ class Symbols:
fullSym = "%s:%s" % (moduleName, symbol)
if not fullSym in self.dictSymbolAddress:
self.dictSymbolAddress[fullSym] = "0x00%08x" % (baseOffset+ int(modSymbols[symbol], 16))
# Support pseudo symbol for image base: _IMAGE_BASE_<moduleName>_
self.dictVariable['_IMAGE_BASE_%s_' % moduleName] = self.dictModBase['%s:BASE' % moduleName]
return 0
#