0

Is there a way to figure out if a library archive is built using SJLJ or DWARF2 exception handling compiler? The library is compiled using 32 MinGW.

Dimon Buzz
  • 1,130
  • 3
  • 16
  • 35
  • 1
    I think that you could detect a DWARF2 library by searching for either an "eh_frame" or a "debug_frame" section in `objdump -W `. – Josh Townzen Nov 22 '13 at 05:28
  • This is good point, Josh. I tied objdump --dwarf library.a and for SJLJ compiled lib it shows no dwarf info, while for DWARF compiled it shows some stuff. – Dimon Buzz Nov 23 '13 at 03:59

1 Answers1

0

I agree with looking for eh_frame. That's an indicator that "DWARF" or "zero-cost" unwinding is in use.

However I'd like to note that it isn't well-formed to ask if a "library" uses this. Some objects in a library may use o

Tom Tromey
  • 21,507
  • 2
  • 45
  • 63