From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70100 invoked by alias); 12 Jul 2019 11:24:41 -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 70001 invoked by uid 89); 12 Jul 2019 11:24:25 -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=-9.3 required=5.0 tests=AWL,BAYES_00,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 spammy=our X-Spam-Status: No, score=-9.3 required=5.0 tests=AWL,BAYES_00,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; Fri, 12 Jul 2019 11:24:23 +0000 X-Alimail-AntiSpam:AC=CONTINUE;BC=0.1175341|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.293794-0.0115343-0.694671;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03302;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=2;RT=2;SR=0;TI=SMTPD_---.EwP2Uq-_1562930656; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EwP2Uq-_1562930656) by smtp.aliyun-inc.com(10.147.41.187); Fri, 12 Jul 2019 19:24:16 +0800 Date: Fri, 12 Jul 2019 11:24:00 -0000 From: Mao Han To: Mark Wielaard Cc: elfutils-devel@sourceware.org Subject: Re: [[RESEND & PING]PATCH V3 0/1] Add C-SKY support Message-ID: <20190712112244.GA2356@vmh-VirtualBox> References: <1539116e9ac2bfb0871481291ea0081287544e0f.camel@klomp.org> <20190711031142.GA824@vmh-VirtualBox> <9ac80d83eedfd1b4da9c5e876919982599a43e68.camel@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ac80d83eedfd1b4da9c5e876919982599a43e68.camel@klomp.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2019-q3/txt/msg00045.txt.bz2 On Thu, Jul 11, 2019 at 03:36:03PM +0200, Mark Wielaard wrote: > > the EM_CSKY_OLD equals to 39. We have changed the EM number to 252 in > > our newly released toolchain with compatibility to EM_CSKY_OLD. > > See binutils/include/elf/common.h: > > /* C-SKY historically used 39, the same value as MCORE, from which > > the > > architecture was derived. */ > > #define EM_CSKY_OLD EM_MCORE > > Aha. But that is unfortunate on 2 levels. First EM_MCORE isn't an > official e_machine name. The value 39 is associated with EM_RCE for the > Morotola RCE. I assume those are the same thing? > Yes, they are the same thing. #define EM_MCORE 39 /* Motorola M*Core */ /* May also be taken by Fujitsu MMA */ #define EM_RCE 39 /* Old name for MCore */ > Second, it makes it hard to check the elfutils backend since you'll > have to comment out all EM_RCE usage, and change the EM_CSKY to the old > value. > > Do you have any binaries/core files generated by an upstream toolchain > that uses the assigned ELF values? That would be really helpful running > some tests. > 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