GenFw: PeCoffConvertImageToXip overwrites file headers
authorjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Tue, 22 Dec 2009 07:28:32 +0000 (07:28 +0000)
committerjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Tue, 22 Dec 2009 07:28:32 +0000 (07:28 +0000)
commitbaa2d277f0095133129519b96d08ba7dab5c52a0
tree02510ce49ad4c721db69434286e72128bbc83a9e
parent4a250186ead0ad98d5b10479bc9d25910995a909
GenFw: PeCoffConvertImageToXip overwrites file headers

If a section had an offset which overlapped with the executable headers
then the headers would be overwritten by PeCoffConvertImageToXip.
Now, this function will abort the conversion to XIP if this situation
is detected.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1776 7335b38e-4728-0410-8992-fb3ffe349368
Source/C/GenFw/GenFw.c