Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: a8c39ba2986c1ffb1dab864cefedc86402a9695c
https://github.com/tianocore/edk2/commit/a8c39ba2986c1ffb1dab864cefedc86402a9695c
Author: Ard Biesheuvel <ard.biesheu...@linaro.org>
Date: 2016-04-18 (Mon, 18 Apr 2016)
Changed paths:
M ArmPlatformPkg/Scripts/Ds5/firmware_volume.py
Log Message:
-----------
ArmPlatformPkg/DS-5: fix 64-bit PE/COFF header parsing bug
The 64-bit version of the DS-5 debug script that retrieves the debug file
path from the PE/COFF image in memory assumes that the PE/COFF header is
packed, and that the debug directory entry in the optional header appears
at a fixed offset into the file. This is no longer true, now that we pad
between the file header and the PE header if the section alignment exceeds
the size of the header (which may be the case when the module contains a
vector table or small model code, which requires 2 KB or 4 KB section
alignment, respectively), to allow this padding to be emitted if the image
is subsequently converted to TE format.
So replace the fixed offset with a dereference of the appropriate header
field.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org>
Reported-by: Vladimir Olovyannikov <vladimir.olovyanni...@broadcom.com>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits