dumpbin的使用方法_使用dumpbin查看C库信息时,UNDEF和notype()是什...

我们可以看一下the MSDN documentation for dumpbin /SYMBOLS:

This option displays the COFF symbol table. Symbol tables exist in all

object files. A COFF symbol table appears in an image file only if it

is linked with /DEBUG.

The following is a description of the output for /SYMBOLS. Additional

information on the meaning of /SYMBOLS output can be found by looking

in winnt.h (IMAGE_SYMBOL and IMAGE_AUX_SYMBOL), or COFF documentation.

Given the following sample dump:

Dump of file main.obj

File Type: COFF OBJECT

COFF SYMBOL TABLE

000 00000000 DEBUG notype Filename | .file

main.cpp

002 000B1FDB ABS notype Static | @comp.id

003 00000000 SECT1 notype Static | .drectve

Section length 26, #relocs 0, #linenums 0, checksum 722C964F

005 00000000 SECT2 notype Static | .text

Section length 23, #relocs 1, #linenums 0, checksum 459FF65F, selection 1 (pick no duplicates)

007 00000000 SECT2 notype () External | _main

008 00000000 UNDEF notype () External | ?MyDump@@YAXXZ (void __cdecl MyDump(void))

String Table Size = 0x10 bytes

Summary

26 .drectve

23 .text

The following description, for lines that begin with a symbol number,

describes columns that have information relevant to users:

The first three-digit number is the symbol index/number.

If the third column contains SECTx, the symbol is defined in that

section of the object file. But if UNDEF appears, it is not defined in

that object and must be resolved elsewhere.

The fifth column (Static, External) tells whether the symbol is

visible only within that object, or whether it is public (visible

externally). A Static symbol, _sym, wouldn’t be linked to a Public

symbol _sym; these would be two different instances of functions named

_sym.

The last column in a numbered line is the symbol name, both

decorated and undecorated.

notype()的含义恰如其分:它没有类型.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值