Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-25 Thread Robert Harris via Dwarf-Discuss
> On 25 Sep 2018, at 01:44, Cary Coutant wrote: > > The new material in Section 7.3.1 about what needs relocation is > clarifying material that was just as true for DWARF 2, 3, and 4. That > was an attempt to pre-emptively answer your questions above. OK. Many thanks, all, for your clarificat

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Cary Coutant via Dwarf-Discuss
> I'm interested in the final state of an executable or shared object > and I don't expect to find any remaining ELF-style (e.g. > R_AMD64_64 and the like) run time (ld.so) relocations in non-loadable > .debug_* sections. No, you're not going to see any dynamic relocations for non-loadable section

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Robert Harris via Dwarf-Discuss
> On 24 Sep 2018, at 18:40, Eric Christopher wrote: > > Dwarf 5, 7.3.1 > > "A DWARF expression may contain a DW_OP_addr (see Section 2.5.1.1 on 31 page > 26) which contains a location within the virtual address space of the 32 > program, and require relocation." I think I've confused the is

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Eric Christopher via Dwarf-Discuss
On Mon, Sep 24, 2018 at 10:55 AM Michael Eager via Dwarf-Discuss < dwarf-discuss@lists.dwarfstd.org> wrote: > On 09/24/2018 09:19 AM, Robert Harris via Dwarf-Discuss wrote: > >> But in general, yes, any DWARF expression that contains a DW_OP_addr > might need a relocation for its address argument.

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Michael Eager via Dwarf-Discuss
On 09/24/2018 09:19 AM, Robert Harris via Dwarf-Discuss wrote: But in general, yes, any DWARF expression that contains a DW_OP_addr might need a relocation for its address argument. > Are you aware of where in the standard this is documented? It sounds reasonable but I'm returning to this aft

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Eric Christopher via Dwarf-Discuss
Dwarf 5, 7.3.1 "A DWARF expression may contain a DW_OP_addr (see Section 2.5.1.1 on 31 page 26) which contains a location within the virtual address space of the 32 program, and require relocation." On Mon, Sep 24, 2018 at 10:35 AM Robert Harris via Dwarf-Discuss < dwarf-discuss@lists.dwarfstd.or

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Robert Harris via Dwarf-Discuss
> On 24 Sep 2018, at 16:59, Greg Clayton wrote: > > > >> On Sep 24, 2018, at 8:44 AM, Robert Harris >> wrote: >> >> >> >>> On 24 Sep 2018, at 15:33, Greg Clayton wrote: >>> >>> >>> On Sep 24, 2018, at 7:15 AM, Robert Harris via Dwarf-Discuss wrote: I'd like som

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Greg Clayton via Dwarf-Discuss
> On Sep 24, 2018, at 8:44 AM, Robert Harris wrote: > > > >> On 24 Sep 2018, at 15:33, Greg Clayton wrote: >> >> >> >>> On Sep 24, 2018, at 7:15 AM, Robert Harris via Dwarf-Discuss >>> wrote: >>> >>> I'd like some clarification regarding what precisely needs to be relocated >>> relati

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Robert Harris via Dwarf-Discuss
> On 24 Sep 2018, at 15:33, Greg Clayton wrote: > > > >> On Sep 24, 2018, at 7:15 AM, Robert Harris via Dwarf-Discuss >> wrote: >> >> I'd like some clarification regarding what precisely needs to be relocated >> relative to >> the object load address when interpreting .debug_frame. I'm i

Re: [Dwarf-Discuss] .debug_frame and the base address

2018-09-24 Thread Greg Clayton via Dwarf-Discuss
> On Sep 24, 2018, at 7:15 AM, Robert Harris via Dwarf-Discuss > wrote: > > I'd like some clarification regarding what precisely needs to be relocated > relative to > the object load address when interpreting .debug_frame. I'm interested in > versions > 2, 3 and 4. > > I think the only exp