Re: [Dwarf-Discuss] armcc DWARF

2018-05-23 Thread David Anderson via Dwarf-Discuss
On 05/23/2018 10:54 AM, Richard Earnshaw wrote: >> So, given two .debug_info and two .debug_line,  the only place I can >> think of that links >> the pieces together (ie right .debug_line from a .debug_info) as >> intended would be  relocation information. >> Similar for .debug_abbrev. >> Is that t

Re: [Dwarf-Discuss] armcc DWARF

2018-05-23 Thread Richard Earnshaw via Dwarf-Discuss
On 23/05/18 18:28, David Anderson wrote: > On 05/23/2018 01:56 AM, Richard Earnshaw wrote: >> It's perfectly legal to have multiple sections with the same name in an >> ELF file. All relevant inter section data is conveyed by the section's >> unique index. Having identical names for sections is i

Re: [Dwarf-Discuss] armcc DWARF

2018-05-23 Thread David Anderson via Dwarf-Discuss
On 05/23/2018 01:56 AM, Richard Earnshaw wrote: > It's perfectly legal to have multiple sections with the same name in an > ELF file. All relevant inter section data is conveyed by the section's > unique index. Having identical names for sections is important for > getting link ordering correct.

Re: [Dwarf-Discuss] armcc DWARF

2018-05-23 Thread David Anderson via Dwarf-Discuss
On 05/22/2018 05:07 PM, Michael Eager wrote: > The thinking may be that if the linker is going to coalesce like- > named sections from multiple object files, it might as well do > the same for like-named sections in the same object file. Yes, that is what the armcc linker does, the final executabl

Re: [Dwarf-Discuss] armcc DWARF

2018-05-23 Thread Keith Walker via Dwarf-Discuss
@lists.dwarfstd.org Subject: [Dwarf-Discuss] armcc DWARF I have been given a tiny object file created by armcc using DWARF and things make no sense to me so far. dwarfdump (and libdwarf) use the SHT_GROUP section data to associate sections to their group. This is a .o, not a fully linked executable

Re: [Dwarf-Discuss] armcc DWARF

2018-05-23 Thread Richard Earnshaw via Dwarf-Discuss
On 23/05/18 01:07, Michael Eager via Dwarf-Discuss wrote: > On 05/22/2018 04:34 PM, David Anderson wrote: >> On 05/22/2018 04:18 PM, Michael Eager wrote: >>> On 05/22/2018 02:33 PM, David Anderson via Dwarf-Discuss wrote: I have been given a tiny object file  created by armcc using D

Re: [Dwarf-Discuss] armcc DWARF

2018-05-22 Thread Michael Eager via Dwarf-Discuss
On 05/22/2018 04:34 PM, David Anderson wrote: On 05/22/2018 04:18 PM, Michael Eager wrote: On 05/22/2018 02:33 PM, David Anderson via Dwarf-Discuss wrote: I have been given a tiny object file  created by armcc using DWARF and things make no sense to me so far. dwarfdump (and libdwarf) use the

Re: [Dwarf-Discuss] armcc DWARF

2018-05-22 Thread David Anderson via Dwarf-Discuss
On 05/22/2018 04:18 PM, Michael Eager wrote: > On 05/22/2018 02:33 PM, David Anderson via Dwarf-Discuss wrote: >> >> I have been given a tiny object file  created by armcc >> using DWARF and things make no sense to me so far. >> >> dwarfdump (and libdwarf) use the SHT_GROUP section data to associat

Re: [Dwarf-Discuss] armcc DWARF

2018-05-22 Thread Michael Eager via Dwarf-Discuss
On 05/22/2018 02:33 PM, David Anderson via Dwarf-Discuss wrote: I have been given a tiny object file  created by armcc using DWARF and things make no sense to me so far. dwarfdump (and libdwarf) use the SHT_GROUP section data to associate sections to their group.  This is a .o, not a fully link

[Dwarf-Discuss] armcc DWARF

2018-05-22 Thread David Anderson via Dwarf-Discuss
I have been given a tiny object file  created by armcc using DWARF and things make no sense to me so far. dwarfdump (and libdwarf) use the SHT_GROUP section data to associate sections to their group.  This is a .o, not a fully linked executable or shared-library. (libdwarf assigns group numbers