audk/MdeModulePkg
Ard Biesheuvel 1cf4e9339d MdeModulePkg: DxeCore: fully initialize image context before passing it on
When the DXE core is loaded, it invokes the PeCoffExtraActionLib library
function 'PeCoffLoaderRelocateImageExtraAction' explicitly, which may be
in addition to the same function having been called by the DxeIpl PE/COFF
loader instance.

The ImageContext that DXE core presents to this function is only partially
initialized, which may result in the following output on AArch64 systems:

add-symbol-file ..MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0x5F226240
<some intermediate output>
add-symbol-file ..MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0x5F226000

This is caused by incorrect data in the ImageContext structure, which means
the start of the .text section is calculated incorrectly. In general, it is
the duty of the caller to present a valid ImageContext structure, so let's
add the missing values before invoking PeCoffLoaderRelocateImageExtraAction().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2016-03-01 10:15:59 +01:00
..
Application MdeModulePkg: Add sample help information for HelloWorld application. 2016-02-24 15:11:14 +08:00
Bus MdeModulePkg/NvmExpress: Fix uninitialized field used in NVMe DiskInfo 2016-03-01 14:37:07 +08:00
Core MdeModulePkg: DxeCore: fully initialize image context before passing it on 2016-03-01 10:15:59 +01:00
Include MdeModulePkg: Add new API HttpUrlGetPath() to HttpLib.h 2016-03-01 10:41:45 +08:00
Library MdeModulePkg: Add new API HttpUrlGetPath() to HttpLib.h 2016-03-01 10:41:45 +08:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg/HiiDatabaseDxe: Fix a variable is uninitialized. 2016-02-29 14:19:27 +01:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg: Add RamDiskDxe driver implementation 2016-02-29 13:51:08 +08:00
MdeModulePkg.dsc MdeModulePkg: Add RamDiskDxe driver implementation 2016-02-29 13:51:08 +08:00
MdeModulePkg.uni MdeModulePkg: Add missing PCD usage information string. 2016-02-29 09:39:50 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00