I wrote simple x86 assembly routine:
$ cat asm.s
.global foo
.section .text
foo:
nop
ret
And compiled it with
$ gcc -c -g asm.s -o asm.o
But when I do objdump --dwarf asm.o
, it does not display any info about function foo
. Looks like, gcc does not create .debug_info
details about foo
.
BTW, there is a entry of foo
in .symtab
.
Any ideas?