Re: [[RESEND & PING]PATCH V3 1/1] Add backend support for C-SKY

2019-07-10 Thread Mao Han
Hi, Mark On Thu, Jul 11, 2019 at 12:11:17AM +0200, Mark Wielaard wrote: > As far as I can see this is like a SHT_GNU_ATTRIBUTES or > SHT_ARM_ATTRIBUTES section. If so, you will also want something like: > > diff --git a/src/readelf.c b/src/readelf.c > index cda7c93..8017dc4 100644 > --- a/src/rea

Re: [[RESEND & PING]PATCH V3 0/1] Add C-SKY support

2019-07-10 Thread Mao Han
On Wed, Jul 10, 2019 at 11:33:23PM +0200, Mark Wielaard wrote: > Hi Mao Han, > > On Mon, 2019-06-03 at 16:16 +0800, Mao Han wrote: > > test binary: > > https://github.com/c-sky/test-result/blob/master/elfutils/divzero > > https://github.com/c-sky/test-result/blob/master/elfutils/core > > I was lo

Re: [[RESEND & PING]PATCH V3 1/1] Add backend support for C-SKY

2019-07-10 Thread Mark Wielaard
Hi Mao Han, On Mon, 2019-06-03 at 16:16 +0800, Mao Han wrote: > +const char * > +csky_section_type_name (int type, > + char *buf __attribute__ ((unused)), > + size_t len __attribute__ ((unused))) > +{ > + if (type == SHT_CSKY_ATTRIBUTES) > +return "CS

Re: [[RESEND & PING]PATCH V3 0/1] Add C-SKY support

2019-07-10 Thread Mark Wielaard
Hi Mao Han, On Mon, 2019-06-03 at 16:16 +0800, Mao Han wrote: > test binary: > https://github.com/c-sky/test-result/blob/master/elfutils/divzero > https://github.com/c-sky/test-result/blob/master/elfutils/core I was looking at these, but they seem to have a wrong e_machine value of EM_RCE, not EM

[Bug tools/24799] New: dwarflint could check .debug_names

2019-07-10 Thread tromey at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24799 Bug ID: 24799 Summary: dwarflint could check .debug_names Product: elfutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: tools

Re: [PATCH] libdwelf: Add dwelf_elf_e_machine_string and use it in readelf.

2019-07-10 Thread Mark Wielaard
On Fri, 2019-06-28 at 23:07 +0200, Mark Wielaard wrote: > To print eh human readable description of the ELF e_machine header field > we used the ebl name. But this is not set for most EM constants. Introduce > a new function dwelf_elf_e_machine_string that does work for all known > EM values. Use t

[Bug backends/23902] MIPS varlocs dwarf_cfi_addrframe: unknown error (missing ebl abi_cfi hook)

2019-07-10 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23902 Mark Wielaard changed: What|Removed |Added Blocks||24795 Referenced Bugs: https://sour

[Bug tools/24795] eu-unstrip doesn't recognize MIPS_DWARF as debug section

2019-07-10 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24795 Mark Wielaard changed: What|Removed |Added Depends on||23902 --- Comment #4 from Mark Wielaa

[Bug tools/24795] eu-unstrip doesn't recognize MIPS_DWARF as debug section

2019-07-10 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24795 --- Comment #3 from Mark Wielaard --- (In reply to Tom de Vries from comment #2) > I tried elfutils-latest.tar.bz2 instead, and ran into the use of > aligned_alloc, which is supported starting glibc v2.16, while debian 7 has > glibc v2.13. BT