From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50360 invoked by alias); 5 Feb 2020 09:00:00 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 50351 invoked by uid 89); 5 Feb 2020 09:00:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=archives, HX-Spam-Relays-External:209.85.217.68, H*RU:209.85.217.68 X-HELO: mail-vs1-f68.google.com Received: from mail-vs1-f68.google.com (HELO mail-vs1-f68.google.com) (209.85.217.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Feb 2020 08:59:58 +0000 Received: by mail-vs1-f68.google.com with SMTP id t12so821906vso.13 for ; Wed, 05 Feb 2020 00:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x4+PLEaSDpRDOimgcKl02Rw+y56KbDzLTl/YSD46+gM=; b=CsYPHb3v2SypbQFRpVQJeXlN1yU80T4k71PRTVBdkWFq/pcGaFU51oE9N+a8XX45lp dGyBur3l+7zzvW1CSwExVicoPflRttu7P5XQ6b/MDOOmcsJ42FYAYp5ZTiPNEoeqft40 W3NQuVeahvxTsCTAs7socBSSHdrKVbAe9ubwpX7nNud2LN1XblZXP+Znj0B08wsv40r3 wf9SsvlAj9IAc34F4v7bOE4ohOGrI6deeNEjQ8yTr8Mhw50tFZMcE2IK/6FRgk/mPQEB 9i1pXu3ee8CAcfUmt988Bodf/tzW0eEq04IfqK1q1t1DpM0g07Mn3wTDhFSI5Xo3rDLA /5zQ== MIME-Version: 1.0 References: <20200205071944.tberxwpcrkhnat4h@gmail.com> In-Reply-To: <20200205071944.tberxwpcrkhnat4h@gmail.com> From: Andrew Pinski Date: Wed, 05 Feb 2020 09:00:00 -0000 Message-ID: Subject: Re: [MIPS] Can we have R_MIPS_PC64? To: Fangrui Song Cc: binutils Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00066.txt.bz2 On Tue, Feb 4, 2020 at 11:20 PM Fangrui Song wrote: > > R_MIPS_PC32 exists as a GNU extension. > R_MIPS_PC64 existed, but was removed by https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4030e8f62467c29b782aa2480e1e452b8e458699 > (like all the old commits, the description just recorded what the commit *did*. There was no *why*.) But the why is recorded still in the mail archives: https://sourceware.org/ml/binutils/2004-04/msg00657.html Thanks, Andrew Pinski > > This just makes certain things unnecessarily complex. > > * DW_EH_PE_pcrel|DW_EH_PE_sdata8 => ? > * __patchable_function_entries has to have the SHF_WRITE flag on MIPS https://gcc.gnu.org/ml/gcc/2020-01/msg00106.html > .quad foo - . => Error: PC-relative reference to a different section