gpt4 book ai didi

elf - 更改 elf 调试信息中列出的源文件

转载 作者:行者123 更新时间:2023-12-05 01:16:36 27 4
gpt4 key购买 nike

基本上,我希望能够在 elf 二进制文件的 debug dwarf 部分中更改源文件的路径。

最佳答案

Basically I want to be able to change the path to the source file in debug dwarf section in a elf binary.



是什么阻止你?

路径存储在 .debug_str二进制文件的一部分,作为 NUL - 终止的字符串。您可以从例如找到部分偏移量 readelf -S , 并用 emacs 编辑字符串.或者编写一个程序来做到这一点。

关于elf - 更改 elf 调试信息中列出的源文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11582447/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com