DWARF bug?
Francisco Moraes
fmoraes@nc.rr.com
Sun Apr 14 16:37:00 GMT 2002
Hi,
When compiling with GCC 3.0.4 (arm-elf target), the result ELF file
correctly contains DWARF FDE instructions when compiled in ARM mode. When
compiled in THUMB mode, the FDEs are empty and some are even missing.
This can be tested with a simple code like:
void a()
{
}
void main()
{
a();
}
Compile with gcc -g -o test.o test.c
readelf -w test.o > tmp.txt (look at the output for .debug_frame section)
Now compile for thumb: gcc -g -mthumb -o test.o test.c
readelf -w test.o > tmp.txt (the FDEs are empty now, no CFA instructions are
found).
Francisco
More information about the Gcc-bugs
mailing list