[PATCH] strip: Deal with ARM data marker symbols pointing to debug sections.

2017-07-21 Thread Mark Wielaard
ARM data marker symbols "$d" indicate the start of a sequence of data items in a section. For data only sections no data marker symbol is necessary, but may be put pointing to the start of the section. binutils however has a bug which places a data marker symbol somewhere inside the section (at lea

Re: File index given line (libdw)

2017-07-21 Thread Mark Wielaard
On Mon, 2017-07-17 at 17:28 +, Sasha Da Rocha Pinheiro wrote: > I understand your argument. Since I was doing: > >dwarf_getsrclines(&cuDIE, &lineBuffer, &lineCount) >dwarf_getsrcfiles(&cuDIE, &files, &filecount) > > I knew they were related because I used the same DIE. But someone

Re: Dwarf_FDE (libdw)

2017-07-21 Thread Mark Wielaard
On Tue, 2017-07-18 at 16:50 +, Sasha Da Rocha Pinheiro wrote: > From: Mark Wielaard >> The thing is I need to get catch blocks, and eh_frame is not exactly >> > Dwarf format. That's why I need FDE augmentation data also. >> > Libdw doesn't do this, am I correct? >> >> libdw handles both .debu

Re: FDE augmentation data

2017-07-21 Thread Mark Wielaard
On Tue, 2017-07-18 at 21:47 +, Sasha Da Rocha Pinheiro wrote: > Hi, how do I get FDE augmentation data? If using Dwarf_CFI_Entry then see https://sourceware.org/ml/elfutils-devel/2017-q3/msg00017.html on how to access the CIE augmentation data. You then have to hand decode that to know how the

Re: [PATCH] ppc64: Add HTM SPRs support to readelf

2017-07-21 Thread Mark Wielaard
On Thu, 2017-07-20 at 17:49 -0400, Gustavo Romero wrote: > Since POWER8, PowerPC 64 supports Hardware Transactional Memory, which has > three special purpose registers associated to it: tfhar, tfiar, and texasr. > This commit add HTM SPRs set as known note type so it's possible to use > 'readelf --