部分链接或将多个对象文件组合到Windows上的对象文件
我正在尝试使用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 技术交流群。

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