From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38421 invoked by alias); 10 Apr 2019 07:59:58 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 38399 invoked by uid 89); 10 Apr 2019 07:59:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-8.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 spammy=han, Han, iv, xc X-Spam-Status: No, score=-8.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: smtp2200-217.mail.aliyun.com Received: from smtp2200-217.mail.aliyun.com (HELO smtp2200-217.mail.aliyun.com) (121.197.200.217) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 Apr 2019 07:59:54 +0000 X-Alimail-AntiSpam:AC=CONTINUE;BC=0.07441908|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.372516-0.126349-0.501135;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03312;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=3;RT=3;SR=0;TI=SMTPD_---.EJIltHu_1554883190; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EJIltHu_1554883190) by smtp.aliyun-inc.com(10.147.42.22); Wed, 10 Apr 2019 15:59:50 +0800 From: Mao Han To: elfutils-devel@sourceware.org Cc: ren_guo@c-sky.com, Mao Han Subject: [PATCH V2 0/2] Add C-SKY support Date: Wed, 10 Apr 2019 07:59:00 -0000 Message-Id: X-Mailer: git-send-email 2.7.4 X-IsSubscribed: yes X-SW-Source: 2019-q2/txt/msg00007.txt.bz2 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