mirror of
https://github.com/Dasharo/edk2.git
synced 2026-06-13 10:16:24 -07:00
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:
@@ -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
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user