This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH V2 0/2] Add C-SKY support
- From: Mao Han <han_mao at c-sky dot com>
- To: elfutils-devel at sourceware dot org
- Cc: ren_guo at c-sky dot com, Mao Han <han_mao at c-sky dot com>
- Date: Wed, 10 Apr 2019 15:51:47 +0800
- Subject: [PATCH V2 0/2] Add C-SKY support
I'v check some of the failed testcase.
> > FAIL: run-native-test.sh
> > ========================
> >
> > allregs: 23064: No such file or directory
> > FAIL run-native-test.sh (exit status: 1)
>
> This is probably because of the script modifications. The test cannot
> find the running process.
>
The script pass the pid of shell script to ssh which is not exist on target.
FAIL: run-deleted.sh
> > FAIL: run-dwarf-getmacros.sh
> > ============================
> >
> > --- dwarf-getmacros.out 2019-02-19 19:28:29.405840052 +0800
> > +++ /tmp/123 2019-02-19 19:28:27.789032052 +0800
> > @@ -1 +1,4 @@
> > -invalid opcode
> > +opcode 255 with 0 arguments
> > +file /home/petr/proj/elfutils/master/elfutils/x.c
> > + FOO 0
> > +/file
> > FAIL run-dwarf-getmacros.sh (exit status: 1)
>
> This is again surprising. I think something went wrong invoking the
> test. If you look at tests/run-dwarf-getmacros.sh you'll see that it
> runs the last testcase twice. Once with 2 and once with 3
> arguments. The third argument is the empty string (but could really be
> anything). Maybe the empty string was lost somehow?
Yes, the empty string is lost. It can pass if I ran the command directly.
> I haven't looked at the code yet, so maybe none of the backtrace tests
> would work even if you could run in "full system mode". If you do have
> a way to generate a C-SKY core file it would be interesting to see if
> you can get a backtrace from it using eu-stack.
I'v tried that and not able to get a backtrace, seems something wrong
with the csky_corenote.c?
# eu-stack --core=./core
PID 142 - core
eu-stack: Couldn't show any frames.
> > FAIL: run-deleted.sh
> > ====================
> >
> > PID 12587 - process
> > TID 12587:
> > #0 0x2ab79648 sleep
> > #1 0x2ab79648 sleep
> > #2 0x2aace6a4
> > /home/vmh/elfutilswk/src/stack: dwfl_thread_getframes tid 12587 at 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 changes.
> The test cannot find the running process.
This case can pass if I ran the command directly.
Changes since v1:
- Add the Signed-off-by line and the copyright
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 | 60 +++++++++++++++++++++++
backends/csky_corenote.c | 61 ++++++++++++++++++++++++
backends/csky_init.c | 65 +++++++++++++++++++++++++
backends/csky_initreg.c | 86 +++++++++++++++++++++++++++++++++
backends/csky_regs.c | 122 +++++++++++++++++++++++++++++++++++++++++++++++
backends/csky_reloc.def | 86 +++++++++++++++++++++++++++++++++
backends/csky_symbol.c | 77 ++++++++++++++++++++++++++++++
libebl/eblopenbackend.c | 1 +
libelf/ChangeLog | 4 ++
libelf/elf.h | 96 ++++++++++++++++++++++++++++++++++++-
src/elflint.c | 2 +-
13 files changed, 677 insertions(+), 5 deletions(-)
create mode 100644 backends/csky_cfi.c
create mode 100644 backends/csky_corenote.c
create mode 100644 backends/csky_init.c
create mode 100644 backends/csky_initreg.c
create mode 100644 backends/csky_regs.c
create mode 100644 backends/csky_reloc.def
create mode 100644 backends/csky_symbol.c
--
2.7.4