Posts with the tag ELF:

The DWARF Debugging Information Format

The DWARF debugging Format Requirements For this article we will be using a few different programs to do some tests on the debugging format. To replicate the examples in this article you need: gcc or clang a nice and simple C program readelf and objdump During this article we will be using gcc and clang to compare and do a few experiments. To generate debugging information, you can use the -gdwarf flag in the two compilers to get an ELF file with the right DWARF debugging info in it. I recommend also using -O0 to avoid any problems with optimized out sections of code.