]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg/Scripts: Infer dll load address from console output
authorArtem Kopotev <Artem.Kopotev@arm.com>
Tue, 15 Jun 2021 15:11:16 +0000 (16:11 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 19 Jul 2021 07:38:14 +0000 (07:38 +0000)
commitfddb8d24eccdcf467a8c777a9a22f4a1e54bf7dd
treeea5f1152802eaa6be7f5e9d639d8e4526574634b
parent4bac086e8e007c7143e33f87bb96238326d1d6ba
ArmPlatformPkg/Scripts: Infer dll load address from console output

cmd_load_symbols.py can only load symbols from FV. Add the possibility to
use UEFI console output to calculate dll load address and send
add-symbol-file commands directly to ArmDS debugger

dll load address can't be used directly from UEFI output, see comment in
DebugPeCoffExtraActionLib: "This may not work correctly if you generate
PE/COFF directly as then the Offset would not be required".

1) Use objdump -S module.dll | grep <_ModuleEntryPoint> to get offset
in dll (offset)
2) Use Entrypoint=<address> from UEFI console output (entrypoint)
3) dll load address is (entrypoint)-(offset)

Signed-off-by: Artem Kopotev <artem.kopotev@arm.com>
Tested-by: Pierre Gondois <Pierre.Gondois@arm.com>
ArmPlatformPkg/Scripts/Ds5/cmd_load_symbols.py
ArmPlatformPkg/Scripts/Ds5/console_loader.py [new file with mode: 0644]