From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from csb.redhat.com (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 4D33A3858C54 for ; Thu, 19 Jan 2023 22:12:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D33A3858C54 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: by csb.redhat.com (Postfix, from userid 10916) id EC6ED10E175; Thu, 19 Jan 2023 23:12:02 +0100 (CET) From: Mark Wielaard To: elfutils-devel@sourceware.org Cc: "Jose E . Marchesi" , Sam James , Mark Wielaard Subject: [PATCH] backends: sparc uses NONE relocation type in ET_EXEC and ET_DYN files Date: Thu, 19 Jan 2023 23:11:38 +0100 Message-Id: <20230119221138.291056-1-mark@klomp.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3038.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,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 List-Id: Using the NONE relocation doesn't do anything, but is harmless. This fixes several (self) tests on sparc that use elflint to check files are valid ELF. Signed-off-by: Mark Wielaard --- backends/ChangeLog | 4 ++++ backends/sparc_reloc.def | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backends/ChangeLog b/backends/ChangeLog index f28ab89b..40ec7c0c 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,7 @@ +2023-01-19 Mark Wielaard + + * sparc_reloc.def (NONE): Add EXEC and DYN. + 2022-12-21 Shahab Vahedi * Makefile.am (modules): Add arc. diff --git a/backends/sparc_reloc.def b/backends/sparc_reloc.def index 7cd5ce96..f0eeb5c6 100644 --- a/backends/sparc_reloc.def +++ b/backends/sparc_reloc.def @@ -28,7 +28,7 @@ /* NAME, REL|EXEC|DYN */ -RELOC_TYPE (NONE, REL) +RELOC_TYPE (NONE, REL|EXEC|DYN) RELOC_TYPE (8, REL) RELOC_TYPE (16, REL) RELOC_TYPE (32, REL|DYN) -- 2.31.1