2017-01-12 11:09:25 +08:00
|
|
|
# RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj
|
|
|
|
# RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj
|
[LLD COFF/PDB] Incrementally update the build id.
Previously, our algorithm to compute a build id involved hashing the
executable and storing that as the GUID in the CV Debug Record chunk,
and setting the age to 1.
This breaks down in one very obvious case: a user adds some newlines to
a file, rebuilds, but changes nothing else. This causes new line
information and new file checksums to get written to the PDB, meaning
that the debug info is different, but the generated code would be the
same, so we would write the same build over again with an age of 1.
Anyone using a symbol cache would have a problem now, because the
debugger would open the executable, look at the age and guid, find a
matching PDB in the symbol cache and then load it. It would never copy
the new PDB to the symbol cache.
This patch implements the canonical Windows algorithm for updating
a build id, which is to check the existing executable first, and
re-use an existing GUID while bumping the age if it already
exists.
Differential Revision: https://reviews.llvm.org/D36758
llvm-svn: 310961
2017-08-16 05:31:41 +08:00
|
|
|
# RUN: rm -f %t.dll %t.pdb
|
2016-12-11 01:23:23 +08:00
|
|
|
# RUN: lld-link /debug /pdb:%t.pdb /dll /out:%t.dll /entry:main /nodefaultlib \
|
2017-05-18 23:15:10 +08:00
|
|
|
# RUN: %t1.obj %t2.obj
|
2017-01-12 11:09:25 +08:00
|
|
|
|
2017-06-10 04:46:17 +08:00
|
|
|
# RUN: llvm-pdbutil pdb2yaml -stream-metadata -stream-directory -pdb-stream \
|
2016-12-09 12:46:54 +08:00
|
|
|
# RUN: -dbi-stream -ipi-stream -tpi-stream %t.pdb | FileCheck %s
|
2016-09-16 07:14:40 +08:00
|
|
|
|
2017-08-05 04:02:38 +08:00
|
|
|
# RUN: llvm-pdbutil dump -modules -section-map -section-contribs -section-headers \
|
2017-07-28 02:25:59 +08:00
|
|
|
# RUN: -publics -public-extras -types -ids -type-extras -id-extras %t.pdb \
|
|
|
|
# RUN: | FileCheck -check-prefix RAW %s
|
2017-04-08 02:38:38 +08:00
|
|
|
|
2016-09-16 07:14:40 +08:00
|
|
|
# CHECK: MSF:
|
|
|
|
# CHECK-NEXT: SuperBlock:
|
2016-09-16 12:32:33 +08:00
|
|
|
# CHECK-NEXT: BlockSize: 4096
|
2018-03-30 02:34:15 +08:00
|
|
|
# CHECK-NEXT: FreeBlockMap: 2
|
2017-03-16 06:58:10 +08:00
|
|
|
# CHECK-NEXT: NumBlocks:
|
|
|
|
# CHECK-NEXT: NumDirectoryBytes:
|
2016-09-16 12:32:33 +08:00
|
|
|
# CHECK-NEXT: Unknown1: 0
|
2017-03-16 06:58:10 +08:00
|
|
|
# CHECK-NEXT: BlockMapAddr:
|
|
|
|
# CHECK-NEXT: NumDirectoryBlocks:
|
|
|
|
# CHECK-NEXT: DirectoryBlocks:
|
2017-06-16 06:24:24 +08:00
|
|
|
# CHECK-NEXT: NumStreams:
|
|
|
|
# CHECK-NEXT: FileSize:
|
|
|
|
# CHECK-NEXT: StreamSizes:
|
2017-06-20 01:21:45 +08:00
|
|
|
# CHECK: StreamMap:
|
2017-03-16 06:58:10 +08:00
|
|
|
# CHECK: PdbStream:
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: Age: 1
|
2017-01-12 11:09:25 +08:00
|
|
|
# CHECK-NEXT: Guid:
|
2017-07-08 04:25:39 +08:00
|
|
|
# CHECK-NEXT: Signature:
|
2017-06-13 05:46:51 +08:00
|
|
|
# CHECK-NEXT: Features: [ VC140 ]
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: Version: VC70
|
|
|
|
# CHECK-NEXT: DbiStream:
|
Fix some differences between lld and MSVC generated PDBs.
A couple of things were different about our generated PDBs.
1) We were outputting the wrong Version on the PDB Stream.
The version we were setting was newer than what MSVC is setting.
It's not clear what the implications are, but we change LLD
to use PdbImplVC70, as MSVC does.
2) For the optional debug stream indices in the DBI Stream, we
were outputting 0 to mean "the stream is not present". MSVC
outputs uint16_t(-1), which is the "correct" way to specify
that a stream is not present. So we fix that as well.
3) We were setting the PDB Stream signature to 0. This is supposed
to be the result of calling time(nullptr). Although this leads
to non-deterministic builds, a better way to solve that is by
having a command line option explicitly for generating a
reproducible build, and have the default behavior of lld-link
match the default behavior of link.
To test this, I'm making use of the new and improved `pdb diff`
sub command. To make it suitable for writing tests against, I had
to modify the diff subcommand slightly to print less verbose output.
Previously it would always print | <column> | <value1> | <value2> |
which is quite verbose, and the values are fragile. All we really
want to know is "did we produce the same value as link?" So I added
command line options to print a single character representing the
result status (different, identical, equivalent), and another to
hide the value display. Note that just inspecting the diff output
used to write the test, you can see some things that are obviously
wrong. That is just reflective of the fact that this is the state
of affairs today, not that we're asserting that this is "correct".
We can use this as a starting point to discover differences, fix
them, and update the test.
Differential Revision: https://reviews.llvm.org/D35086
llvm-svn: 307422
2017-07-08 02:45:56 +08:00
|
|
|
# CHECK-NEXT: VerHeader: V70
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: Age: 1
|
|
|
|
# CHECK-NEXT: BuildNumber: 0
|
|
|
|
# CHECK-NEXT: PdbDllVersion: 0
|
|
|
|
# CHECK-NEXT: PdbDllRbld: 0
|
|
|
|
# CHECK-NEXT: Flags: 0
|
|
|
|
# CHECK-NEXT: MachineType: x86
|
|
|
|
# CHECK-NEXT: TpiStream:
|
|
|
|
# CHECK-NEXT: Version: VC80
|
|
|
|
# CHECK-NEXT: Records:
|
|
|
|
# CHECK-NEXT: - Kind: LF_ARGLIST
|
|
|
|
# CHECK-NEXT: ArgList:
|
2017-01-12 11:09:25 +08:00
|
|
|
# CHECK-NEXT: ArgIndices: [ ]
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: - Kind: LF_PROCEDURE
|
|
|
|
# CHECK-NEXT: Procedure:
|
|
|
|
# CHECK-NEXT: ReturnType: 116
|
|
|
|
# CHECK-NEXT: CallConv: NearC
|
|
|
|
# CHECK-NEXT: Options: [ None ]
|
|
|
|
# CHECK-NEXT: ParameterCount: 0
|
|
|
|
# CHECK-NEXT: ArgumentList: 4096
|
2017-01-12 11:09:25 +08:00
|
|
|
# CHECK-NEXT: - Kind: LF_POINTER
|
|
|
|
# CHECK-NEXT: Pointer:
|
|
|
|
# CHECK-NEXT: ReferentType: 4097
|
|
|
|
# CHECK-NEXT: Attrs: 65548
|
|
|
|
# CHECK-NEXT: - Kind: LF_ARGLIST
|
|
|
|
# CHECK-NEXT: ArgList:
|
|
|
|
# CHECK-NEXT: ArgIndices: [ 0 ]
|
|
|
|
# CHECK-NEXT: - Kind: LF_PROCEDURE
|
|
|
|
# CHECK-NEXT: Procedure:
|
|
|
|
# CHECK-NEXT: ReturnType: 116
|
|
|
|
# CHECK-NEXT: CallConv: NearC
|
|
|
|
# CHECK-NEXT: Options: [ None ]
|
|
|
|
# CHECK-NEXT: ParameterCount: 0
|
|
|
|
# CHECK-NEXT: ArgumentList: 4099
|
2017-03-25 01:26:38 +08:00
|
|
|
# CHECK-NEXT: IpiStream:
|
|
|
|
# CHECK-NEXT: Version: VC80
|
|
|
|
# CHECK-NEXT: Records:
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: - Kind: LF_FUNC_ID
|
|
|
|
# CHECK-NEXT: FuncId:
|
|
|
|
# CHECK-NEXT: ParentScope: 0
|
2017-01-12 11:09:25 +08:00
|
|
|
# CHECK-NEXT: FunctionType: 4100
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: Name: main
|
2017-01-12 11:09:25 +08:00
|
|
|
# CHECK-NEXT: - Kind: LF_FUNC_ID
|
|
|
|
# CHECK-NEXT: FuncId:
|
|
|
|
# CHECK-NEXT: ParentScope: 0
|
|
|
|
# CHECK-NEXT: FunctionType: 4097
|
|
|
|
# CHECK-NEXT: Name: foo
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: - Kind: LF_STRING_ID
|
|
|
|
# CHECK-NEXT: StringId:
|
|
|
|
# CHECK-NEXT: Id: 0
|
|
|
|
# CHECK-NEXT: String: 'D:\b'
|
|
|
|
# CHECK-NEXT: - Kind: LF_STRING_ID
|
|
|
|
# CHECK-NEXT: StringId:
|
|
|
|
# CHECK-NEXT: Id: 0
|
|
|
|
# CHECK-NEXT: String: 'C:\vs14\VC\BIN\amd64\cl.exe'
|
|
|
|
# CHECK-NEXT: - Kind: LF_STRING_ID
|
|
|
|
# CHECK-NEXT: StringId:
|
|
|
|
# CHECK-NEXT: Id: 0
|
|
|
|
# CHECK-NEXT: String: '-Z7 -c -MT -IC:\vs14\VC\INCLUDE -IC:\vs14\VC\ATLMFC\INCLUDE -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared"'
|
|
|
|
# CHECK-NEXT: - Kind: LF_SUBSTR_LIST
|
2017-03-22 09:43:49 +08:00
|
|
|
# CHECK-NEXT: StringList:
|
2017-03-25 01:26:38 +08:00
|
|
|
# CHECK-NEXT: StringIndices: [ 4100 ]
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: - Kind: LF_STRING_ID
|
|
|
|
# CHECK-NEXT: StringId:
|
2017-03-25 01:26:38 +08:00
|
|
|
# CHECK-NEXT: Id: 4101
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: String: ' -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" -TC -X'
|
|
|
|
# CHECK-NEXT: - Kind: LF_STRING_ID
|
|
|
|
# CHECK-NEXT: StringId:
|
|
|
|
# CHECK-NEXT: Id: 0
|
2017-01-12 11:09:25 +08:00
|
|
|
# CHECK-NEXT: String: ret42-main.c
|
2016-12-09 12:46:54 +08:00
|
|
|
# CHECK-NEXT: - Kind: LF_STRING_ID
|
|
|
|
# CHECK-NEXT: StringId:
|
|
|
|
# CHECK-NEXT: Id: 0
|
|
|
|
# CHECK-NEXT: String: 'D:\b\vc140.pdb'
|
|
|
|
# CHECK-NEXT: - Kind: LF_BUILDINFO
|
|
|
|
# CHECK-NEXT: BuildInfo:
|
2017-03-25 01:26:38 +08:00
|
|
|
# CHECK-NEXT: ArgIndices: [ 4098, 4099, 4103, 4104, 4102 ]
|
2017-01-12 11:09:25 +08:00
|
|
|
# CHECK-NEXT: - Kind: LF_STRING_ID
|
|
|
|
# CHECK-NEXT: StringId:
|
|
|
|
# CHECK-NEXT: Id: 0
|
|
|
|
# CHECK-NEXT: String: ret42-sub.c
|
|
|
|
# CHECK-NEXT: - Kind: LF_BUILDINFO
|
|
|
|
# CHECK-NEXT: BuildInfo:
|
2017-03-25 01:26:38 +08:00
|
|
|
# CHECK-NEXT: ArgIndices: [ 4098, 4099, 4106, 4104, 4102 ]
|
2016-09-16 07:14:40 +08:00
|
|
|
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW: Modules
|
|
|
|
RAW-NEXT: ============================================================
|
2017-08-21 22:53:25 +08:00
|
|
|
RAW-NEXT: Mod 0000 | `{{.*}}pdb.test.tmp1.obj`:
|
2017-06-16 06:30:00 +08:00
|
|
|
RAW-NEXT: Obj: `{{.*}}pdb.test.tmp1.obj`:
|
2018-03-24 02:43:39 +08:00
|
|
|
RAW-NEXT: debug stream: 11, # files: 1, has ec info: false
|
2017-07-07 13:41:25 +08:00
|
|
|
RAW-NEXT: pdb file ni: 0 ``, src file ni: 0 ``
|
2017-08-21 22:53:25 +08:00
|
|
|
RAW-NEXT: Mod 0001 | `{{.*}}pdb.test.tmp2.obj`:
|
2017-06-16 06:30:00 +08:00
|
|
|
RAW-NEXT: Obj: `{{.*}}pdb.test.tmp2.obj`:
|
2018-03-24 02:43:39 +08:00
|
|
|
RAW-NEXT: debug stream: 12, # files: 1, has ec info: false
|
2017-07-07 13:41:25 +08:00
|
|
|
RAW-NEXT: pdb file ni: 0 ``, src file ni: 0 ``
|
2017-08-21 22:53:25 +08:00
|
|
|
RAW-NEXT: Mod 0002 | `* Linker *`:
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: Obj: ``:
|
2018-03-24 02:43:39 +08:00
|
|
|
RAW-NEXT: debug stream: 13, # files: 0, has ec info: false
|
2017-07-07 13:41:25 +08:00
|
|
|
RAW-NEXT: pdb file ni: 1 `{{.*pdb.test.tmp.pdb}}`, src file ni: 0 ``
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW: Types (TPI Stream)
|
|
|
|
RAW-NEXT: ============================================================
|
|
|
|
RAW-NEXT: Showing 5 records
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x1000 | LF_ARGLIST [size = 8, hash = 0xEC0]
|
|
|
|
RAW-NEXT: 0x1001 | LF_PROCEDURE [size = 16, hash = 0x7BC]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: return type = 0x0074 (int), # args = 0, param list = 0x1000
|
|
|
|
RAW-NEXT: calling conv = cdecl, options = None
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x1002 | LF_POINTER [size = 12, hash = 0x884]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: referent = 0x1001, mode = pointer, opts = None, kind = ptr64
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x1003 | LF_ARGLIST [size = 12, hash = 0x936]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: <no type>: ``
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x1004 | LF_PROCEDURE [size = 16, hash = 0x852]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: return type = 0x0074 (int), # args = 0, param list = 0x1003
|
|
|
|
RAW-NEXT: calling conv = cdecl, options = None
|
|
|
|
RAW: Types (IPI Stream)
|
|
|
|
RAW-NEXT: ============================================================
|
|
|
|
RAW-NEXT: Showing 12 records
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x1000 | LF_FUNC_ID [size = 20, hash = 0x330]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: name = main, type = 0x1004, parent scope = <no type>
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x1001 | LF_FUNC_ID [size = 16, hash = 0x120]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: name = foo, type = 0x1001, parent scope = <no type>
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x1002 | LF_STRING_ID [size = 16, hash = 0x757] ID: <no type>, String: D:\b
|
|
|
|
RAW-NEXT: 0x1003 | LF_STRING_ID [size = 36, hash = 0xC3A] ID: <no type>, String: C:\vs14\VC\BIN\amd64\cl.exe
|
|
|
|
RAW-NEXT: 0x1004 | LF_STRING_ID [size = 260, hash = 0x433] ID: <no type>, String: -Z7 -c -MT -IC:\vs14\VC\INCLUDE -IC:\vs14\VC\ATLMFC\INCLUDE -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared"
|
|
|
|
RAW-NEXT: 0x1005 | LF_SUBSTR_LIST [size = 12, hash = 0x759]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: 0x1004: `-Z7 -c -MT -IC:\vs14\VC\INCLUDE -IC:\vs14\VC\ATLMFC\INCLUDE -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared"`
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x1006 | LF_STRING_ID [size = 132, hash = 0xF57] ID: 0x1005, String: -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" -TC -X
|
|
|
|
RAW-NEXT: 0x1007 | LF_STRING_ID [size = 24, hash = 0x2D1] ID: <no type>, String: ret42-main.c
|
|
|
|
RAW-NEXT: 0x1008 | LF_STRING_ID [size = 24, hash = 0xB8B] ID: <no type>, String: D:\b\vc140.pdb
|
|
|
|
RAW-NEXT: 0x1009 | LF_BUILDINFO [size = 28, hash = 0xA8C]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: 0x1002: `D:\b`
|
|
|
|
RAW-NEXT: 0x1003: `C:\vs14\VC\BIN\amd64\cl.exe`
|
|
|
|
RAW-NEXT: 0x1007: `ret42-main.c`
|
|
|
|
RAW-NEXT: 0x1008: `D:\b\vc140.pdb`
|
|
|
|
RAW-NEXT: 0x1006: ` -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" -TC -X`
|
2017-07-20 01:26:07 +08:00
|
|
|
RAW-NEXT: 0x100A | LF_STRING_ID [size = 20, hash = 0x39C] ID: <no type>, String: ret42-sub.c
|
|
|
|
RAW-NEXT: 0x100B | LF_BUILDINFO [size = 28, hash = 0xAD7]
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: 0x1002: `D:\b`
|
|
|
|
RAW-NEXT: 0x1003: `C:\vs14\VC\BIN\amd64\cl.exe`
|
|
|
|
RAW-NEXT: 0x100A: `ret42-sub.c`
|
|
|
|
RAW-NEXT: 0x1008: `D:\b\vc140.pdb`
|
|
|
|
RAW-NEXT: 0x1006: ` -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" -TC -X`
|
2017-07-28 02:25:59 +08:00
|
|
|
RAW: Public Symbols
|
2017-08-09 12:23:59 +08:00
|
|
|
RAW-NEXT: ============================================================
|
|
|
|
RAW-NEXT: Publics Header
|
|
|
|
RAW-NEXT: sym hash = 556, thunk table addr = 0000:0000
|
|
|
|
RAW-NEXT: GSI Header
|
|
|
|
RAW-NEXT: sig = 0xFFFFFFFF, hdr = 0xF12F091A, hr size = 16, num buckets = 524
|
|
|
|
RAW-NEXT: Records
|
|
|
|
RAW-NEXT: 20 | S_PUB32 [size = 20] `main`
|
|
|
|
RAW-NEXT: flags = function, addr = 0002:0000
|
|
|
|
RAW-NEXT: 0 | S_PUB32 [size = 20] `foo`
|
|
|
|
RAW-NEXT: flags = function, addr = 0002:0016
|
|
|
|
RAW-NOT: S_PUB32
|
|
|
|
RAW-NEXT: Hash Entries
|
|
|
|
RAW-NEXT: off = 21, refcnt = 1
|
|
|
|
RAW-NEXT: off = 1, refcnt = 1
|
|
|
|
RAW-NEXT: Hash Buckets
|
|
|
|
RAW-NEXT: 0x00000000
|
|
|
|
RAW-NEXT: 0x0000000c
|
|
|
|
RAW-NEXT: Address Map
|
|
|
|
RAW-NEXT: off = 20
|
|
|
|
RAW-NEXT: off = 0
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW: Section Headers
|
|
|
|
RAW-NEXT: ============================================================
|
|
|
|
RAW: SECTION HEADER #1
|
|
|
|
RAW-NEXT: .pdata name
|
2017-08-05 05:15:12 +08:00
|
|
|
RAW-NEXT: virtual size
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: 1000 virtual address
|
|
|
|
RAW-NEXT: 200 size of raw data
|
2017-12-01 09:04:31 +08:00
|
|
|
RAW-NEXT: 400 file pointer to raw data
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: 0 file pointer to relocation table
|
|
|
|
RAW-NEXT: 0 file pointer to line numbers
|
|
|
|
RAW-NEXT: 0 number of relocations
|
|
|
|
RAW-NEXT: 0 number of line numbers
|
|
|
|
RAW-NEXT: 40000040 flags
|
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
|
|
|
|
RAW-NEXT: IMAGE_SCN_MEM_READ
|
|
|
|
RAW: SECTION HEADER #2
|
|
|
|
RAW-NEXT: .text name
|
2017-08-05 05:15:12 +08:00
|
|
|
RAW-NEXT: virtual size
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: 2000 virtual address
|
|
|
|
RAW-NEXT: 200 size of raw data
|
2017-12-01 09:04:31 +08:00
|
|
|
RAW-NEXT: 600 file pointer to raw data
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: 0 file pointer to relocation table
|
|
|
|
RAW-NEXT: 0 file pointer to line numbers
|
|
|
|
RAW-NEXT: 0 number of relocations
|
|
|
|
RAW-NEXT: 0 number of line numbers
|
|
|
|
RAW-NEXT: 60000020 flags
|
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_CODE
|
|
|
|
RAW-NEXT: IMAGE_SCN_MEM_EXECUTE
|
|
|
|
RAW-NEXT: IMAGE_SCN_MEM_READ
|
|
|
|
RAW: SECTION HEADER #3
|
2017-12-01 09:04:31 +08:00
|
|
|
RAW-NEXT: .xdata name
|
2017-08-05 05:15:12 +08:00
|
|
|
RAW-NEXT: virtual size
|
2017-11-21 05:49:35 +08:00
|
|
|
RAW-NEXT: 3000 virtual address
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: 200 size of raw data
|
2017-12-01 09:04:31 +08:00
|
|
|
RAW-NEXT: 800 file pointer to raw data
|
|
|
|
RAW-NEXT: 0 file pointer to relocation table
|
|
|
|
RAW-NEXT: 0 file pointer to line numbers
|
|
|
|
RAW-NEXT: 0 number of relocations
|
|
|
|
RAW-NEXT: 0 number of line numbers
|
|
|
|
RAW-NEXT: 40000040 flags
|
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
|
|
|
|
RAW-NEXT: IMAGE_SCN_MEM_READ
|
|
|
|
RAW: SECTION HEADER #4
|
|
|
|
RAW-NEXT: .rdata name
|
|
|
|
RAW-NEXT: virtual size
|
|
|
|
RAW-NEXT: 4000 virtual address
|
|
|
|
RAW-NEXT: 200 size of raw data
|
|
|
|
RAW-NEXT: A00 file pointer to raw data
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: 0 file pointer to relocation table
|
|
|
|
RAW-NEXT: 0 file pointer to line numbers
|
|
|
|
RAW-NEXT: 0 number of relocations
|
|
|
|
RAW-NEXT: 0 number of line numbers
|
|
|
|
RAW-NEXT: 40000040 flags
|
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
|
|
|
|
RAW-NEXT: IMAGE_SCN_MEM_READ
|
|
|
|
RAW: Original Section Headers
|
|
|
|
RAW-NEXT: ============================================================
|
|
|
|
RAW-NEXT: PDB does not contain the requested image section header type
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW: Section Contributions
|
|
|
|
RAW-NEXT: ============================================================
|
2017-08-08 04:23:45 +08:00
|
|
|
RAW-NEXT: SC[.pdata] | mod = 0, 0001:0000, size = 12, data crc = 361370162, reloc crc = 0
|
2017-08-05 05:18:17 +08:00
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_ALIGN_4BYTES | IMAGE_SCN_MEM_READ
|
2017-08-08 04:23:45 +08:00
|
|
|
RAW-NEXT: SC[.text] | mod = 0, 0002:0000, size = 14, data crc = 1682752513, reloc crc = 0
|
2017-08-05 05:18:17 +08:00
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_CODE | IMAGE_SCN_ALIGN_16BYTES | IMAGE_SCN_MEM_EXECUTE |
|
|
|
|
RAW-NEXT: IMAGE_SCN_MEM_READ
|
2017-08-08 04:23:45 +08:00
|
|
|
RAW-NEXT: SC[.text] | mod = 1, 0002:0016, size = 6, data crc = 2139436471, reloc crc = 0
|
2017-08-05 05:18:17 +08:00
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_CODE | IMAGE_SCN_ALIGN_16BYTES | IMAGE_SCN_MEM_EXECUTE |
|
|
|
|
RAW-NEXT: IMAGE_SCN_MEM_READ
|
2017-12-01 09:04:31 +08:00
|
|
|
RAW-NEXT: SC[.xdata] | mod = 0, 0003:0000, size = 8, data crc = 264583633, reloc crc = 0
|
2017-08-05 05:18:17 +08:00
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_ALIGN_4BYTES | IMAGE_SCN_MEM_READ
|
2017-12-01 09:04:31 +08:00
|
|
|
RAW-NEXT: SC[???] | mod = 2, 0004:0000, size = {{[0-9]+}}, data crc = 0, reloc crc = 0
|
2017-11-21 05:49:35 +08:00
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_MEM_READ
|
2017-12-01 09:04:31 +08:00
|
|
|
RAW-NEXT: SC[???] | mod = 2, 0004:0028, size = {{[0-9]+}}, data crc = 0, reloc crc = 0
|
2017-11-21 05:49:35 +08:00
|
|
|
RAW-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA | IMAGE_SCN_MEM_READ
|
|
|
|
RAW-NOT: SC[
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW: Section Map
|
|
|
|
RAW-NEXT: ============================================================
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: Section 0000 | ovl = 0, group = 0, frame = 1, name = 65535
|
2017-07-08 04:25:39 +08:00
|
|
|
RAW-NEXT: class = 65535, offset = 0, size =
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: flags = read | 32 bit addr | selector
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: Section 0001 | ovl = 0, group = 0, frame = 2, name = 65535
|
2017-07-08 04:25:39 +08:00
|
|
|
RAW-NEXT: class = 65535, offset = 0, size =
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: flags = read | execute | 32 bit addr | selector
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: Section 0002 | ovl = 0, group = 0, frame = 3, name = 65535
|
2017-07-08 04:25:39 +08:00
|
|
|
RAW-NEXT: class = 65535, offset = 0, size =
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: flags = read | 32 bit addr | selector
|
2017-08-05 04:02:38 +08:00
|
|
|
RAW-NEXT: Section 0003 | ovl = 0, group = 0, frame = 4, name = 65535
|
2017-07-08 04:25:39 +08:00
|
|
|
RAW-NEXT: class = 65535, offset = 0, size =
|
2017-12-01 09:04:31 +08:00
|
|
|
RAW-NEXT: flags = read | 32 bit addr | selector
|
|
|
|
RAW-NEXT: Section 0004 | ovl = 0, group = 0, frame = 5, name = 65535
|
|
|
|
RAW-NEXT: class = 65535, offset = 0, size =
|
2017-06-16 06:24:24 +08:00
|
|
|
RAW-NEXT: flags = 32 bit addr | absolute addr
|