简体   繁体   English

在 IAR ARM V8 编译器中更改 DWARF elf 格式

[英]Change DWARF elf format in IAR ARM V8 compiler

In our development, we switched from IAR ARM V7.40 to IAR ARM V8.40在我们的开发中,我们从 IAR ARM V7.40 切换到 IAR ARM V8.40

We are using the python package pyelftools for postprocessing of the debug information.我们正在使用 python package pyelftools对调试信息进行后处理。 Unfortunately, this seems to be broken now, as the V8-compiler seems to use DWARF4 syntax, which is not fully covered by pyelftools.不幸的是,现在这似乎被打破了,因为 V8 编译器似乎使用 DWARF4 语法,而 pyelftools 并未完全涵盖这一点。 The V7-compiler used DWARF3 which was fine. V7 编译器使用 DWARF3,这很好。

Is there any compiler option for IAR V8 to change DWARF format? IAR V8 是否有任何编译器选项可以更改 DWARF 格式? In the IAR C/C++ Development Guide , I only find the --debug, -r option to enable debug information, but no further fine tunings (eg like -gdwarf-3 option for the arm-clang compiler).IAR C/C++ Development Guide中,我只找到--debug, -r选项来启用调试信息,但没有进一步的微调(例如 arm-clang 编译器的-gdwarf-3选项)。

There is a hidden compiler option --no_dwarf4 which disables DWARF4.有一个隐藏的编译器选项--no_dwarf4可以禁用 DWARF4。 This works fine for our problem.这对我们的问题很有效。

Unfortunately, this compiler option is neither documented in the IAR C/C++ Development Guide nor listed in the command line help ( $ iccarm --help ) for the compiler.不幸的是,这个编译器选项既没有记录在IAR C/C++ 开发指南中,也没有列在编译器的命令行帮助 ( $ iccarm --help ) 中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将矮人文件转换成Stabs格式? - How do I convert an elf file from dwarf to stabs format? 无法使用 IAR ARM 编译器强制函数表到特定地址 - Can't force function table to specific address with IAR ARM compiler 如何从 LLVM IR 到 output ARM V8 汇编? - How to output ARM V8 assembly from LLVM IR? IAR 编译器“stdio 库” - IAR compiler "stdio library" arm-elf和arm-none-eabi工具链生成的可执行文件格式有什么不同吗? - Is there any difference in the format of executable file generated by arm-elf and arm-none-eabi toolchains? 添加 printf 时的编译器段错误(来自 arm 的 gcc 10.2 aarch64_none-elf-) - compiler segfault when printf is added (gcc 10.2 aarch64_none-elf- from arm) 如何使用 arm-non-eabi-gcc 作为交叉编译器生成一个 elf 文件以在 eclipse on windows 上运行? - How to generate a elf file to run in eclipse on windows using arm-non-eabi-gcc as cross compiler? 奇怪的编译器速度优化结果-IAR编译器 - Strange compiler speed optimization results - IAR compiler 如何使矮人节被加载到一个elf文件的内存中? - How to make the dwarf sections get loaded into memory in an elf file? 如何在Arm v8架构(Cortex-A53)中使用VFP指令 - How to use VFP instructions in Arm v8 architecture (Cortex-A53)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM