From: David Y. <dyo...@po...> - 2018-03-06 02:17:42
|
I've found that in elftoolchain 0.7.1, the libdwarf function dwarf_get_fde_list_eh() exits with an error when an object has a CIE with 'S'-augmentation in its .eh_frame section: Augmentation: zRS The augmentation has something to do with signal frames. I've worked around this by slightly patching libdwarf_frame.c: --- a/external/bsd/elftoolchain/libdwarf/libdwarf_frame.c +++ b/external/bsd/elftoolchain/libdwarf/libdwarf_frame.c @@ -143,6 +143,7 @@ _dwarf_frame_parse_lsb_cie_augment(Dwarf_Debug dbg, Dwarf_Cie cie, while (*aug_p != '\0') { switch (*aug_p) { case 'L': + case 'S': /* Skip one augment in augment data. */ augdata_p++; break; Without the patch, an 'S'-augmentation makes _dwarf_frame_parse_lsb_cie_augment() exit with an error at the switch's default case. Dave -- David Young dy...@po... Urbana, IL (217) 721-9981 |