diff options
author | Liming Gao <liming.gao@intel.com> | 2017-08-22 13:58:57 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-08-24 11:21:27 +0800 |
commit | 279c01ce13739f0fd8ec3e7652299f6873fc14a9 (patch) | |
tree | cfe85dff0722276c6784101d8466de66d375949e /BaseTools/Source/C/GenFw | |
parent | e4d409c6e3b96738fb0c710ecd21bcd79db93381 (diff) | |
download | edk2-279c01ce13739f0fd8ec3e7652299f6873fc14a9.zip edk2-279c01ce13739f0fd8ec3e7652299f6873fc14a9.tar.gz edk2-279c01ce13739f0fd8ec3e7652299f6873fc14a9.tar.bz2 |
BaseTools: Roll back GenFw Change to keep unknown field in RSDS debug entry
https://lists.01.org/pipermail/edk2-devel/2017-August/013488.html
These fields are actually a GUID and DWORD respectively: the GUID identifies
the PDB to make it possible to verify that a given PDB matches the PE file,
and the DWORD is the "age" of the PDB which is simply a helper value that is
incremented by 1 by the linker every time the file is remade. Wiping the
GUID will cause PDB parsers (such as the MS DIA SDK that IDA and most other
tools use) to treat the PDB as a mismatch and refuse to load it.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/C/GenFw')
-rw-r--r-- | BaseTools/Source/C/GenFw/GenFw.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/BaseTools/Source/C/GenFw/GenFw.c b/BaseTools/Source/C/GenFw/GenFw.c index af60c92..33ba917 100644 --- a/BaseTools/Source/C/GenFw/GenFw.c +++ b/BaseTools/Source/C/GenFw/GenFw.c @@ -2903,13 +2903,7 @@ Returns: }
if (DebugEntry->Type == EFI_IMAGE_DEBUG_TYPE_CODEVIEW) {
RsdsEntry = (EFI_IMAGE_DEBUG_CODEVIEW_RSDS_ENTRY *) (FileBuffer + DebugEntry->FileOffset);
- if (RsdsEntry->Signature == CODEVIEW_SIGNATURE_RSDS) {
- RsdsEntry->Unknown = 0;
- RsdsEntry->Unknown2 = 0;
- RsdsEntry->Unknown3 = 0;
- RsdsEntry->Unknown4 = 0;
- RsdsEntry->Unknown5 = 0;
- } else if (RsdsEntry->Signature == CODEVIEW_SIGNATURE_MTOC) {
+ if (RsdsEntry->Signature == CODEVIEW_SIGNATURE_MTOC) {
// MTOC sets DebugDirectoryEntrySize to size of the .debug section, so fix it.
if (!ZeroDebugFlag) {
if (Optional32Hdr->Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) {
|