This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to lookup a symbol for vma using BFD?


2008/8/8 H.J. Lu <hjl.tools@gmail.com>:

> Can you try this patch
>
> http://sourceware.org/ml/binutils/2008-07/msg00361.html

It behaves the same way (with my fix for crash
http://www.sourceware.org/bugzilla/show_bug.cgi?id=6832): no symbols
are loaded for a unit if it does not contain DW_AT_stmt_list.

I was able to modify dwarf2.c to allow find_line to return filename
only (and line=0) for a symbol if the comp unit does not contain
DW_AT_stmt_list.

Not sure this is interesting for someone since
1. ADS 1.2 perhaps violate DWARF2 providing such units
2. BFD perhaps is not interesting to support ADS 1.2

If not, let me know, I will send a patch with my changes here.

Dmitry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]