链接描述文件生成器
我最近花了很多时间尝试修复有问题的 ld 脚本。 一旦我(在纸上)画出了所有不同的部分,我就能找出问题。
所以我开始寻找某种 LD 脚本生成器,但找不到! 有人知道这样的工具是否存在吗? 可以导入/导出 ld 脚本或地图文件/elf 文件并显示不同对象/部分和地址的东西?
我知道有一些 IDE,您无需担心 LD 脚本,但我使用的是 eclipse,它甚至不提供语法突出显示!
I recently spent many hours trying to fix a problematic ld script.
Once I had drawn (on paper) all the different sections I could figure out the problem.
So I started searching for some sort of LD script generator, but could not find any!
Does anybody know if such a tool exist?
Something that can import/export ld scripts or map-file/elf-file and show the different objects/sections and the addresses?
I know there are some IDEs out there where you do not need to worry about LD-scripts but I am using eclipse and it does not even offer syntax highlighting!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我所知,没有用于此目的的非专有工具。
To my knowledge, there are no non-proprietary tools for this purpose.
我不知道有任何用于 LD 脚本的所见即所得编辑器,但我也许能够帮助您以图形方式调试这些类型的问题。
我认为这是一个运行时问题而不是编译时问题。如果是这种情况,那么您可以使用链接器的映射输出来了解正在发生的情况。
然后可以使用 grep 解析映射文件,或者您可以使用文件的图形查看器来调试部分和符号的问题。
您还可以使用 nm 从链接的可执行文件中获取类似的结果:
I don't know of any WYSIWYG editors for LD scripts but I may be able to help you graphically debug these types of problems.
I assume that this was a run-time problem and not a compile time problem. If that is the case then you can use the map output from the linker to get an idea of what is going on.
The map file can then be parsed with grep or you can use a graphical viewer for the file to debug problems with sections and symbols.
You can also use nm to get similar results from a linked executable:
NXP 使用 Apache freemarker 工具将链接器脚本生成器集成到 NXP (Eclipse基于)IDE MCUXpresso
Apache freemarker tool is used by NXP for the linker script generator integrated into the NXP (Eclipse based) IDE MCUXpresso