How to lookup a symbol for vma using BFD?

Nick Clifton nickc@redhat.com
Thu Aug 7 15:48:00 GMT 2008


Hi Dmitry,

> I've found that the comp unit for this file contains no
> DW_AT_stmt_list attribute and comp_unit_maybe_decode_line_info() from
> dwarf2.c returns FALSE thus preventing comp_unit_find_line() from
> looking up variable table.

You need to include DWARF2 debugging info in your object files for this 
work.  ie you need to have the "-g" switch present on gcc's command line 
when you compile your object files.

Cheers
   Nick




More information about the Binutils mailing list