哪种库内容既不是符号也不是出口?

发布于 2025-02-08 10:35:21 字数 1512 浏览 2 评论 0原文

一般而言,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文