Re: [PATCH V4 0/1] Add C-SKY support

2019-07-16 Thread Mao Han
=== > > Testsuite summary for elfutils 0.176 > > > > # TOTAL: 209 > > # PASS: 204 > > # SKIP: 5 > > # XFAIL: 0 > > # FAIL: 0 > > # XPASS: 0 >

[PATCH V4 1/1] Add backend support for C-SKY

2019-07-16 Thread Mao Han
C-SKY V2 ABI manual: https://github.com/c-sky/csky-doc/blob/master/C-SKY_V2_CPU_Applications_Binary_Interface_Standards_Manual.pdf C-SKY architecture user guide: https://github.com/c-sky/csky-doc/blob/master/CSKY%20Architecture%20user_guide.pdf Signed-off-by: Mao Han --- backends/ChangeLog

[PATCH V4 0/1] Add C-SKY support

2019-07-16 Thread Mao Han
estsuite summary for elfutils 0.176 # TOTAL: 209 # PASS: 204 # SKIP: 5 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============ Changes since v1: - Add the Signe

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

2019-07-15 Thread Mao Han
done deliberately. If they can never occur in v2 > ELF binaries I would leave them out. The content of the ABI manual is quite old, binutils souce code seems much reliable to refer to. binutils/bfd/elf32-csky.c says, only three relocations are abiv1 exclusive: R_CKCORE_PCREL_JSR_IMM11BY2 R_CKCORE_PCREL_IMM8

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

2019-07-12 Thread Mao Han
> I've generated binaries/core with an upstream toolchain, however the divzero testcase doesn't cause any coredump, so I used a zeroptr testcase instead. https://github.com/c-sky/test-result/blob/master/elfutils/zeroptr https://github.com/c-sky/test-result/raw/master/elfutils/core.zeroptr Thanks, Mao Han

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

2019-07-10 Thread Mao Han
EM_CSKY))) > continue; > >printf (gettext ("\ > > And then hook check_object_attribute to display any CSKY specific > attribute names/values. Ok, I'll add check for C-SKY here. Thanks, Mao Han

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/mast

Re: [PATCH V2 0/2] Add C-SKY support

2019-06-26 Thread Mao Han
On Tue, Jun 25, 2019 at 12:26:55AM +0200, Mark Wielaard wrote: > Hi, > > On Wed, 2019-04-17 at 14:41 +0800, Mao Han wrote: > > I'v just spent sometime debuging this. Core dump backtrace on C-SKY > > seems > > can't be supported with current generic routine.

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

2019-06-03 Thread Mao Han
C-SKY V2 ABI manual: https://github.com/c-sky/csky-doc/blob/master/C-SKY_V2_CPU_Applications_Binary_Interface_Standards_Manual.pdf C-SKY architecture user guide: https://github.com/c-sky/csky-doc/blob/master/CSKY%20Architecture%20user_guide.pdf Signed-off-by: Mao Han --- backends/ChangeLog

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

2019-06-03 Thread Mao Han
ze.o.rev differ: section [1], [1] name FAIL run-reverse-sections-self.sh (exit status: 1) Changes since v1: - Add the Signed-off-by line and the copyright Changes since v2: - move changelog to corresponding entries - correct core dump registers size - remove unused fpu DWARF register Ma

[PATCH v3 1/1] Add backend support for C-SKY

2019-05-04 Thread Mao Han
/csky_regs.c create mode 100644 backends/csky_reloc.def create mode 100644 backends/csky_symbol.c diff --git a/backends/ChangeLog b/backends/ChangeLog index 6c2b47a..9271f9c 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,14 @@ +2019-04-29 Mao Han + + * Makefile.am: Add C

[PATCH v3 0/1] Add C-SKY support

2019-05-04 Thread Mao Han
This patch add backend support for C-SKY architecture. Changes since v1: - Add the Signed-off-by line and the copyright Changes since v2: - move changelog to corresponding entries - correct core dump registers size - remove unused fpu DWARF register Mao Han (1): Add backend support

Re: [PATCH V2 0/2] Add C-SKY support

2019-04-16 Thread Mao Han
aabce 100644 --- a/src/stack.c +++ b/src/stack.c @@ -608,7 +608,7 @@ parse_opt (int key, char *arg __attribute__ ((unused)), if (core != NULL) { if (dwfl_core_file_attach (dwfl, core) < 0) - error (EXIT_BAD, 0, "dwfl_core_file_report: %s", dwfl_errmsg (-1)); + error (EXIT_BAD, 0, "dwfl_core_file_attach: %s", dwfl_errmsg (-1)); } /* Makes sure we are properly attached. */ Thanks, Mao Han

Re: [PATCH V2 2/2] Add backend support for C-SKY

2019-04-16 Thread Mao Han
unused)), > > + size_t len __attribute__ ((unused))) > > +{ > > + if (type == SHT_CSKY_ATTRIBUTES) > > +return "CSKY_ATTRIBUTES"; > > + > > + return NULL; > > +} > > OK. > I couldn't find any description of this section. > Is it like SHT_ARM_ATTRIBUTES/SHT_GNU_ATTRIBUTES? > Then you might also want to handle it like that in src/readelf.c > (print_attributes). Yes, it is. static int process_csky_specific (FILE * file) { return process_attributes (file, "csky", SHT_CSKY_ATTRIBUTES, display_csky_attribute, NULL); } binutils-gdb/binutils/readelf.c https://github.com/c-sky/binutils-gdb/blob/binutils-2_27-branch-csky/binutils/readelf.c Thanks, Mao Han

[PATCH] wrong backend definition?

2019-04-10 Thread Mao Han
--- backends/riscv_cfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/riscv_cfi.c b/backends/riscv_cfi.c index 1a84a38..5d3e884 100644 --- a/backends/riscv_cfi.c +++ b/backends/riscv_cfi.c @@ -31,7 +31,7 @@ #include -#define BACKEND aarch64_ +#define BACKEND r

[PATCH V2 0/2] Add C-SKY support

2019-04-10 Thread Mao Han
t > > 0x2aace6a3 in /home/vmh/elfutilswk/tests/test-25076/deleted-lib.so: > > Callback returned failure > > ./run-deleted.sh: line 38: kill: (12587) - No such process > > FAIL run-deleted.sh (exit status: 1) > > This is again most likely because of script change

[PATCH V2 1/2] libelf: Sync elf.h from glibc

2019-04-10 Thread Mao Han
Signed-off-by: Mao Han --- libelf/ChangeLog | 4 +++ libelf/elf.h | 96 ++-- 2 files changed, 98 insertions(+), 2 deletions(-) diff --git a/libelf/ChangeLog b/libelf/ChangeLog index d9b7749..d3bdac3 100644 --- a/libelf/ChangeLog +++ b

[PATCH V2 2/2] Add backend support for C-SKY

2019-04-10 Thread Mao Han
C-SKY V2 ABI manual: https://github.com/c-sky/csky-doc/blob/master/C-SKY_V2_CPU_Applications_Binary_Interface_Standards_Manual.pdf C-SKY architecture user guide: https://github.com/c-sky/csky-doc/blob/master/CSKY%20Architecture%20user_guide.pdf Signed-off-by: Mao Han --- backends/ChangeLog

Re: [PATCH 0/2] Add C-SKY support

2019-04-03 Thread Mao Han
Hi, FIX NEWLINE IN LAST EMAIL On Wed, Apr 03, 2019 at 10:54:11PM +0200, Mark Wielaard wrote: > Hi, > > On Mon, Apr 01, 2019 at 10:31:55AM +0800, Mao Han wrote: > > This patch add backend support for C-SKY architecture. > > Thanks. I don't know anything about the C

Re: [PATCH 0/2] Add C-SKY support

2019-04-03 Thread Mao Han
Hi, On Wed, Apr 03, 2019 at 10:54:11PM +0200, Mark Wielaard wrote: > Hi, > > On Mon, Apr 01, 2019 at 10:31:55AM +0800, Mao Han wrote: > > This patch add backend support for C-SKY architecture. > > Thanks. I don't know anything about the C-SKY architecture. Do you >

[PATCH 1/2] libelf: Sync elf.h from glibc

2019-03-31 Thread Mao Han
+1,7 @@ +2019-04-01 Mao Han + + * elf.h: Update from glibc. + 2019-03-07 Mark Wielaard * elf32_updatefile.c (updatemmap): Use posix_memalign instead of diff --git a/libelf/elf.h b/libelf/elf.h index 75043bc..01648bd 100644 --- a/libelf/elf.h +++ b/libelf/elf.h @@ -1,5 +1,5

[PATCH 2/2] Add backend support for C-SKY

2019-03-31 Thread Mao Han
/csky_reloc.def create mode 100644 backends/csky_symbol.c diff --git a/backends/ChangeLog b/backends/ChangeLog index 0c61a0b..0c3193e 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,16 @@ +2019-04-01 Mao Han + + * backends/Makefile.am: Add C-SKY. + * backends/csky_cfi.c: New

[PATCH 0/2] Add C-SKY support

2019-03-31 Thread Mao Han
./run-deleted.sh: line 38: kill: (12587) - No such process FAIL run-deleted.sh (exit status: 1) Mao Han (2): libelf: Sync elf.h from glibc Add backend support for C-SKY backends/ChangeLog | 13 + backends/Makefile.am | 9 +++- backends/csky_cfi.c