This is the mail archive of the dwarf2@corp.sgi.com mailing list for the dwarf2 project.


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

Re: DWARF references crossing shared library boundaries


Todd Allen wrote:
> 
> The biggest extension that we've made to DWARF 2.0.0 is to permit DWARF
> DW_FORM_ref_addr references to reference debugging information entries in
> another shared object.


> This deviates from the text in 7.5.4 discussing references of form
> DW_FORM_ref_addr, where it says "within the same executable or shared
> object".  I'd like to loosen up that language.

My first impression is that a shared library which contained a DW_FORM_ref_addr
which was not resolved would have a relocation table entry.  A debugger can
resolve this reference when it reads the Dwarf data, since it generally
has information about all of the shared libraries which are loaded.

I don't see a problem with permitting DW_FORM_ref_addr to be unresolved
in a shared library.

-- 
Michael Eager	 Eager Consulting     eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



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