Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@WORDS, often wrong

May
12,845
164
The file t.txt is attached. It's some output from DUMPBIN. When I do this (below), @WORDS seems to be wrong, often. The first is the "ImportAddressTable" line. Many of the individual import lines (each with 2 words) are wrong, as are the summary lines. TCCv16 gets them right.

Code:
v:\> do line in @t.txt (if "%line" != "" (echo LINE: %line & echo WORDS: %@words[%line]))
LINE: Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
WORDS: 6
LINE: Copyright (C) Microsoft Corporation.  All rights reserved.
WORDS: 7
LINE: Dump of file g:\tcc-rt\plugins\4utils.dll
WORDS: 4
LINE: File Type: DLL
WORDS: 3
LINE:   Section contains the following imports:
WORDS: 5
LINE:     TakeCmd.dll
WORDS: 1
LINE:               1001D2AC Import Address Table
WORDS: 3
LINE:               10027CE4 Import Name Table
WORDS: 3
LINE:                      0 time date stamp
WORDS: 4
LINE:                      0 Index of first forwarder reference
WORDS: 2
LINE:                   25B MakeFullName
WORDS: 2
LINE:                   2B0 StripEnclosingQuotes
WORDS: 1
LINE:                   26E Qprintf
WORDS: 2
LINE:                   283 QueryIsFile
WORDS: 2
LINE:                   261 NthArgument
WORDS: 2
LINE:                   232 Evaluate
WORDS: 2
LINE:                   285 QueryIsFileUnicode
WORDS: 1
LINE:                   238 FreeMem
WORDS: 2
LINE:                   218 AllocMem
WORDS: 2
LINE:                   2C3 honk
WORDS: 2
LINE:                   282 QueryIsDirectory
WORDS: 1
LINE:                   234 ExpandVariables
WORDS: 1
LINE:                   215 ASCIIToUnicode
WORDS: 0
LINE:                   298 QueryTrueName
WORDS: 2
LINE:                   29C ReallocMem
WORDS: 2
LINE:                   295 QueryOptionValue
WORDS: 1
LINE:                   243 GetKeystroke
WORDS: 2
LINE:                   292 QueryKeyWaiting
WORDS: 1
LINE:                   231 EscapeLine
WORDS: 2
LINE:                   1B0 ?TakeCommandIPC@@YAHPA_W0@Z
WORDS: 1
LINE:                   1DD ?UpdateEnvironment@@YAXXZ
WORDS: 1
LINE:                   2C7 tty_yield
WORDS: 2
LINE:                   2B4 UnicodeToASCII
WORDS: 0
LINE:                   2B8 WildcardComparison
WORDS: 1
LINE:                   2AF Sscanf
WORDS: 2
LINE:                   26A Printf
WORDS: 2
LINE:                   2AE Sprintf
WORDS: 2
LINE:                   223 Command
WORDS: 2
LINE:                   2A8 SetEVariable
WORDS: 2
LINE:   Summary
WORDS: 1
LINE:         6000 .data
WORDS: 1
LINE:         1000 .inject
WORDS: 1
LINE:         D000 .rdata
WORDS: 1
LINE:         3000 .reloc
WORDS: 1
LINE:        1B000 .text
WORDS: 1
 

Attachments

  • t.txt
    1.6 KB · Views: 241

Similar threads

G
Replies
8
Views
3K
Back
Top