哪种库内容既不是符号也不是出口?
一般而言,dumpbin /符号< /code>显示从静态库导出的符号,
dumpbin /enforts < /code>显示了从动态库导出的符号。
我遇到了一个没有显示出来的库:
(c1) C:\Python-3.10.4\PCbuild\amd64>dumpbin /symbols liblzma.lib
Microsoft (R) COFF/PE Dumper Version 14.31.31104.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file liblzma.lib
File Type: LIBRARY
(c1) C:\Python-3.10.4\PCbuild\amd64>dumpbin /exports liblzma.lib
Microsoft (R) COFF/PE Dumper Version 14.31.31104.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file liblzma.lib
File Type: LIBRARY
到目前为止,它看起来很空,但事实并非如此:
(c1) C:\Python-3.10.4\PCbuild\amd64>dumpbin /all liblzma.lib
Microsoft (R) COFF/PE Dumper Version 14.31.31104.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file liblzma.lib
File Type: LIBRARY
Archive member name at 8: /
62937EFF time/date Sun May 29 15:11:11 2022
uid
gid
0 mode
147C size
correct header end
203 public symbols
3DFE lzma_simple_x86_decoder_init
3DFE lzma_simple_x86_encoder_init
120A0 lzma_simple_sparc_decoder_init
120A0 lzma_simple_sparc_encoder_init
1FB6A lzma_simple_props_encode
1FB6A lzma_simple_props_size
2CD9E lzma_simple_props_decode
3A070 lzma_simple_coder_init
49578 lzma_simple_powerpc_decoder_init
49578 lzma_simple_powerpc_encoder_init
...
因此,它有很多内容,这些内容显示为...在这里发生了什么?这是哪种图书馆?上述输出应该如何解释?
Generally speaking, dumpbin /symbols
shows the symbols exported from a static library, and dumpbin /exports
shows the symbols exported from a dynamic library.
I have encountered a library that doesn't show up as either:
(c1) C:\Python-3.10.4\PCbuild\amd64>dumpbin /symbols liblzma.lib
Microsoft (R) COFF/PE Dumper Version 14.31.31104.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file liblzma.lib
File Type: LIBRARY
(c1) C:\Python-3.10.4\PCbuild\amd64>dumpbin /exports liblzma.lib
Microsoft (R) COFF/PE Dumper Version 14.31.31104.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file liblzma.lib
File Type: LIBRARY
So far, it looks empty, but it's not:
(c1) C:\Python-3.10.4\PCbuild\amd64>dumpbin /all liblzma.lib
Microsoft (R) COFF/PE Dumper Version 14.31.31104.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file liblzma.lib
File Type: LIBRARY
Archive member name at 8: /
62937EFF time/date Sun May 29 15:11:11 2022
uid
gid
0 mode
147C size
correct header end
203 public symbols
3DFE lzma_simple_x86_decoder_init
3DFE lzma_simple_x86_encoder_init
120A0 lzma_simple_sparc_decoder_init
120A0 lzma_simple_sparc_encoder_init
1FB6A lzma_simple_props_encode
1FB6A lzma_simple_props_size
2CD9E lzma_simple_props_decode
3A070 lzma_simple_coder_init
49578 lzma_simple_powerpc_decoder_init
49578 lzma_simple_powerpc_encoder_init
...
So it has plenty of contents, that are showing up as... what is going on here? What kind of library is this? How should the above output be interpreted?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论