Message ID | mvmed79hfx4.fsf@suse.de |
---|---|
State | Committed |
Headers |
Return-Path: <elfutils-devel-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 32C23385B50D for <patchwork@sourceware.org>; Wed, 31 Jul 2024 13:03:47 +0000 (GMT) X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id 9F7D83858C56 for <elfutils-devel@sourceware.org>; Wed, 31 Jul 2024 13:03:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F7D83858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9F7D83858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722431018; cv=none; b=QUzjwBc0mSEhgC9yYh56yQk6/X4ma7nXjy18cR9ydczWwuwpP6Tz5BaBs7Min1THoXpfNPRmn+PpVsxsfsiSVjKSwZwKlytAatPLQmpiSsU5jH2Fed66g6H4LgQqzkN+e0LxEQa/uCj7ifgfCext5bh8nv5I4hlsqtf2JnXSP8o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722431018; c=relaxed/simple; bh=RCZiUw6sIx8P8txtkkkSHWHc5RiLTyCYndeSOBC8rYI=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=EdnuUjbkFjwBGaxniEp69agI9Jm/aYcOQ1Njh6o62TgzanaVbP25budul1olMP05QXb2+k2fF9XLrk7Bxc6knZKZIxXpMVSpPTwVACysx5sFQnZzKeUJhQ0i6jV4UsxuCDpz/ckoTM3ewzDYwH0IWLKX5dPxejszMU4yakdkJUM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from hawking.nue2.suse.org (unknown [IPv6:2a07:de40:a101:3:92b1:1cff:fe69:ddc]) by smtp-out1.suse.de (Postfix) with ESMTP id 9BD7721A8F for <elfutils-devel@sourceware.org>; Wed, 31 Jul 2024 13:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722431015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=pD1g1XA5unms2ORwgibqxUEN+K/JTS/rxLEKeQ6HWlE=; b=p0fnFhECceDMc2j/XNccHeMmLxgmYXw1osTVbHK1jvfGFkw/soddEeSgi3B1eDy81+jFGU xTZ0A2VPinxiZFPGiwUDcp0ApwATo1oauFFy633pJp7grMZgOsHx7y6dAr2GZm06LNwlGy pP3ph3vHBl76YV7O93E0lF918qvOZLI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722431015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=pD1g1XA5unms2ORwgibqxUEN+K/JTS/rxLEKeQ6HWlE=; b=ymK9P3740kPC3zs1T0YWUlHMrhWUlbfKX5SRMo6h9KpsCIDwAH1HT+9vwMFG61hGT0gl+2 q1nM4WVrgphcf9BQ== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=p0fnFhEC; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=ymK9P374 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1722431015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=pD1g1XA5unms2ORwgibqxUEN+K/JTS/rxLEKeQ6HWlE=; b=p0fnFhECceDMc2j/XNccHeMmLxgmYXw1osTVbHK1jvfGFkw/soddEeSgi3B1eDy81+jFGU xTZ0A2VPinxiZFPGiwUDcp0ApwATo1oauFFy633pJp7grMZgOsHx7y6dAr2GZm06LNwlGy pP3ph3vHBl76YV7O93E0lF918qvOZLI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1722431015; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=pD1g1XA5unms2ORwgibqxUEN+K/JTS/rxLEKeQ6HWlE=; b=ymK9P3740kPC3zs1T0YWUlHMrhWUlbfKX5SRMo6h9KpsCIDwAH1HT+9vwMFG61hGT0gl+2 q1nM4WVrgphcf9BQ== Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 8853F4A051B; Wed, 31 Jul 2024 15:03:35 +0200 (CEST) From: Andreas Schwab <schwab@suse.de> To: elfutils-devel@sourceware.org Subject: [PATCH] backends/riscv: Remove unused relocations X-Yow: If you STAY in China, I'll give you 4,000 BUSHELS of "ATOMIC MOUSE" pencil sharpeners!! Date: Wed, 31 Jul 2024 15:03:35 +0200 Message-ID: <mvmed79hfx4.fsf@suse.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-0.21 / 50.00]; BAYES_HAM(-3.00)[99.99%]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; ONCE_RECEIVED(1.20)[]; RDNS_NONE(1.00)[]; HFILTER_HELO_IP_A(1.00)[hawking.nue2.suse.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; HFILTER_HELO_NORES_A_OR_MX(0.30)[hawking.nue2.suse.org]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; FROM_HAS_DN(0.00)[]; DNSWL_BLOCKED(0.00)[2a07:de40:a101:3:92b1:1cff:fe69:ddc:from]; DIRECT_TO_MX(0.00)[Gnus/5.13 (Gnus v5.13)]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; FUZZY_BLOCKED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[suse.de:+]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,suse.de:dkim] X-Spamd-Bar: / X-Rspamd-Queue-Id: 9BD7721A8F X-Spam-Level: X-Rspamd-Action: no action X-Spam-Score: -0.21 X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Elfutils-devel mailing list <elfutils-devel.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/elfutils-devel/> List-Post: <mailto:elfutils-devel@sourceware.org> List-Help: <mailto:elfutils-devel-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=subscribe> Errors-To: elfutils-devel-bounces~patchwork=sourceware.org@sourceware.org |
Series |
backends/riscv: Remove unused relocations
|
|
Commit Message
Andreas Schwab
July 31, 2024, 1:03 p.m. UTC
None of these relocations were ever part of any object file. The GNU_VTINHERIT and GNU_VTINHERIT relocations were part of the obsolete --gc-sections support which was never implemented for RISC-V. The other relocations are only used internally by libbfd during the relaxation pass and eliminated before writing the object file. * riscv_reloc.def: Remove GNU_VTINHERIT, GNU_VTENTRY, RVC_LUI, GPREL_I, GPREL_S, TPREL_I, TPREL_S. --- backends/riscv_reloc.def | 7 ------- 1 file changed, 7 deletions(-)
Comments
On Wed, Jul 31, 2024 at 9:03 AM Andreas Schwab <schwab@suse.de> wrote: > > None of these relocations were ever part of any object file. The > GNU_VTINHERIT and GNU_VTINHERIT relocations were part of the obsolete > --gc-sections support which was never implemented for RISC-V. The other > relocations are only used internally by libbfd during the relaxation pass > and eliminated before writing the object file. > > * riscv_reloc.def: Remove GNU_VTINHERIT, GNU_VTENTRY, RVC_LUI, > GPREL_I, GPREL_S, TPREL_I, TPREL_S. Thanks Andreas, merged as commit 46c5c98ee7. Aaron
diff --git a/backends/riscv_reloc.def b/backends/riscv_reloc.def index f52f6489..adae83ce 100644 --- a/backends/riscv_reloc.def +++ b/backends/riscv_reloc.def @@ -64,16 +64,9 @@ RELOC_TYPE (SUB8, REL) RELOC_TYPE (SUB16, REL) RELOC_TYPE (SUB32, REL) RELOC_TYPE (SUB64, REL) -RELOC_TYPE (GNU_VTINHERIT, REL) -RELOC_TYPE (GNU_VTENTRY, REL) RELOC_TYPE (ALIGN, REL) RELOC_TYPE (RVC_BRANCH, REL) RELOC_TYPE (RVC_JUMP, REL) -RELOC_TYPE (RVC_LUI, REL) -RELOC_TYPE (GPREL_I, REL) -RELOC_TYPE (GPREL_S, REL) -RELOC_TYPE (TPREL_I, REL) -RELOC_TYPE (TPREL_S, REL) RELOC_TYPE (RELAX, REL) RELOC_TYPE (SUB6, REL) RELOC_TYPE (SET6, REL)