我如何在Rust中指定链接器选项,例如“ #pragma评论(链接,...)”
#pragma comment(linker, "/merge:. data=. text")
#pragma comment(linker, "/merge:. rdata=. text")
#pragma comment(linker, "/section:. rdata=. text")
我尝试了,但是....
#[link_section = "/merge:. data=. text /merge:. rdata=. text /section:. rdata=. text"]
结果,它直接添加了一个部分
。
#pragma comment(linker, "/merge:. data=. text")
#pragma comment(linker, "/merge:. rdata=. text")
#pragma comment(linker, "/section:. rdata=. text")
i try that, but ....
#[link_section = "/merge:. data=. text /merge:. rdata=. text /section:. rdata=. text"]
As a result, it adds a section directly.. it's bad
How should I implement it in rust
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用此命令:
You need to use this command: