部分链接或将多个对象文件组合到Windows上的对象文件

发布于 2025-02-11 04:41:06 字数 343 浏览 1 评论 0原文

我正在尝试使用llvm-objcopy在Windows上的静态库上重新定义符号,但是由于它限制了Coff Format支持,我无法执行- REDEDEDENDECINE-SYMS 在.lib文件上,我必须解开存档并在每个单独的对象文件上执行命令。到目前为止,一切都很好,但是问题是当我有1000多个对象文件时,在Windows上大约需要4分钟才能在它们上操作。 Windows上是否有任何方法将多个对象文件组合到单个对象文件中?还是部分链接他们?

我知道,Unix/Linux上有类似的选项,带有ld -r命令,但我找不到Windows类似的东西。

I am trying to redefine symbols on a static library on Windows, using llvm-objcopy, but because of it's limitation on COFF format support, I can't execute --redefine-syms on .lib file, instead I have to unpack the archive and execute the command on every individual object file. So far so good, but the problem is when I have 1000+ object files, it takes around 4 minutes on Windows to operate on each of them. Is there any way on Windows to combine multiple object files together into single one? or Partial link them?

I know that there is similar option on Unix/Linux with ld -r command, but I can't find something similar for Windows.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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