How to lookup a symbol for vma using BFD?

Dmitry Smirnov divis1969@gmail.com
Tue Aug 12 08:55:00 GMT 2008


2008/8/11 Daniel Jacobowitz <drow@false.org>:
> On Mon, Aug 11, 2008 at 01:32:08PM +0400, Dmitry Smirnov wrote:
>> 1. ADS 1.2 perhaps violate DWARF2 providing such units
>
> No, I'm pretty sure that's valid.

Just to be sure we are in sync: we are talking about units that are
present in .debug_info but do not contain DW_AT_stmt_list. At the same
time, these units can have the same name (i.e. source filename) as
some other units in this .debug_info (i.e. produced from the same
source file). And some of these units can have valid DW_AT_stmt_list.

So, the questions are:
1. Is it possible to support this? I.e. can we merge or handle these
units somehow?
2. If not, is it possible to support such units on "symbol to
filename" search at least (i.e. line=0)?

I'm going to learn my ELF more thoroughly to check whether ALL units
of one and the same file are using the same DW_AT_stmt_list. If so,
perhaps, "merging" could be very simple: we need just to find the unit
with the same name and use its DW_AT_stmt_list.



More information about the Binutils mailing list