where/how does Apples GCC store DWARF inside an executable

前端 未结 4 1842
小蘑菇
小蘑菇 2020-12-04 20:30

Where/how does Apples GCC store DWARF inside an executable?

I compiled a binary via gcc -gdwarf-2 (Apples GCC). However, neither objdump -g

4条回答
  •  孤城傲影
    2020-12-04 21:04

    It seems it actually doesn't.

    I traced dsymutil and it reads all the *.o files. objdump -h also lists all the debug info in them.

    So it seems that those info isn't copied over to the binary.


    Some related comments about this can also be found here.

提交回复
热议问题