From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39725 invoked by alias); 20 Jun 2018 20:49:37 -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 34247 invoked by uid 89); 20 Jun 2018 20:48:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.4 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=aha X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (212.238.236.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Jun 2018 20:48:24 +0000 Received: from tarox.wildebeest.org (tarox.wildebeest.org [172.31.17.39]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id C482D307C40C; Wed, 20 Jun 2018 22:48:08 +0200 (CEST) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id 54E114337300; Wed, 20 Jun 2018 22:48:08 +0200 (CEST) Message-ID: <1529527688.12946.141.camel@klomp.org> Subject: Re: [PATCH] backends: add abi_cfi and register_info callbacks for RISC-V From: Mark Wielaard To: Andreas Schwab Cc: elfutils-devel@sourceware.org Date: Wed, 20 Jun 2018 20:49:00 -0000 In-Reply-To: References: <20180614232812.GG7539@wildebeest.org> <1529493408.12946.131.camel@klomp.org> <1529499550.12946.137.camel@klomp.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.22.6 (3.22.6-14.el7) Mime-Version: 1.0 X-Spam-Flag: NO X-IsSubscribed: yes X-SW-Source: 2018-q2/txt/msg00248.txt.bz2 On Wed, 2018-06-20 at 15:55 +0200, Andreas Schwab wrote: > It's probably because there are more than just simple relocations on > debug sections, more than reloc_simple_type can handle. aha, ok, but it looks like RISCV_(ADD|SUB)(8|16|32|64) should not be too hard to handle. The other ones (RISCV_SETX) might be a little harder. They are not used much though and only against=C2=A0.debug_frame. So if you get RISC_ADD/SUB going that probably handles most uses. Maybe backend reloc_simple_type hook needs to be changed a bit to handle them. But that shouldn't really be a problem, all callers are internal (libdwfl/relocate.c and strip.c). Cheers, Mark