[cfe-dev] .debug_frame not produced by default?

Eli Bendersky eliben at gmail.com
Thu Dec 15 22:10:10 PST 2011


Hello,

Building an object file with ToT Clang:

> Debug+Asserts/bin/clang -o penalty2.o -c penalty.cpp -g

These are the debug-related sections produced:

$ readelf -S penalty2.o |grep debug
  [ 5] .debug_info       PROGBITS         0000000000000000  00000bd0
  [ 6] .rela.debug_info  RELA             0000000000000000  00002f80
  [ 7] .debug_abbrev     PROGBITS         0000000000000000  000010b8
  [ 8] .debug_aranges    PROGBITS         0000000000000000  000011c3
  [ 9] .debug_macinfo    PROGBITS         0000000000000000  000011c3
  [10] .debug_line       PROGBITS         0000000000000000  000011c3
  [11] .rela.debug_line  RELA             0000000000000000  00003850
  [12] .debug_loc        PROGBITS         0000000000000000  00001350
  [13] .debug_pubtypes   PROGBITS         0000000000000000  00001350
  [14] .rela.debug_pubty RELA             0000000000000000  00003868
  [15] .debug_str        PROGBITS         0000000000000000  00001373
  [16] .debug_ranges     PROGBITS         0000000000000000  000015ff

There's no ".debug_frame", although ".eh_frame" was produced. Doesn't
Clang/LLVM create the .debug_frame section by default?

Thanks in advance,
Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111216/5385914a/attachment.html>


More information about the cfe-dev mailing list