From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout2.freenet.de (mout2.freenet.de [IPv6:2001:748:100:40::2:4]) by sourceware.org (Postfix) with ESMTPS id AC6CF385BF83 for ; Tue, 7 Apr 2020 11:13:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AC6CF385BF83 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=justmail.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gnikl@justmail.de Received: from [195.4.92.163] (helo=mjail0.freenet.de) by mout2.freenet.de with esmtpa (ID gnikl@justmail.de) (port 25) (Exim 4.92 #3) id 1jLmAC-00025h-WB for binutils@sourceware.org; Tue, 07 Apr 2020 13:13:05 +0200 Received: from [::1] (port=59386 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID gnikl@justmail.de) (Exim 4.92 #3) id 1jLmAC-0006Ab-VK for binutils@sourceware.org; Tue, 07 Apr 2020 13:13:04 +0200 Received: from sub5.freenet.de ([195.4.92.124]:60780) by mjail0.freenet.de with esmtpa (ID gnikl@justmail.de) (Exim 4.92 #3) id 1jLm87-0004je-Ij for binutils@sourceware.org; Tue, 07 Apr 2020 13:10:55 +0200 Received: from p5b3b3e85.dip0.t-ipconnect.de ([91.59.62.133]:49722 helo=localhost) by sub5.freenet.de with esmtpsa (ID gnikl@justmail.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.92 #3) id 1jLm87-00065c-FX for binutils@sourceware.org; Tue, 07 Apr 2020 13:10:55 +0200 Date: Tue, 7 Apr 2020 13:10:51 +0200 From: Gunther Nikl To: binutils Subject: [PATCH 2/4]: moxie: use generic pcrel support Message-ID: <20200407131051.00003f95@justmail.de> In-Reply-To: <20200407120125.0000069c@justmail.de> References: <20200407120125.0000069c@justmail.de> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originated-At: 91.59.62.133!49722 X-Spam-Status: No, score=-24.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2020 11:13:06 -0000 [resent with correct reference] The moxie target header uses md_pcrel_from, thus the local prototype and the macro definition for MD_PCREL_FROM_SECTION are not needed. 2020-XX-XX Gunther Nikl * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define. (md_pcrel_from): Remove prototytpe. diff --git a/gas/config/tc-moxie.h b/gas/config/tc-moxie.h index 80f7f6c402..a66b60affe 100644 --- a/gas/config/tc-moxie.h +++ b/gas/config/tc-moxie.h @@ -36,12 +36,4 @@ #define md_estimate_size_before_relax(A, B) (as_fatal (_("estimate size\n")), 0) #define md_convert_frag(B, S, F) as_fatal (_("convert_frag\n")) -/* If you define this macro, it should return the offset between the - address of a PC relative fixup and the position from which the PC - relative adjustment should be made. On many processors, the base - of a PC relative instruction is the next instruction, so this - macro would return the length of an instruction. */ -#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from (FIX) -extern long md_pcrel_from (struct fix *); - #define md_section_align(SEGMENT, SIZE) (SIZE)