From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61734 invoked by alias); 5 Feb 2020 09:04:17 -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 61719 invoked by uid 89); 5 Feb 2020 09:04:17 -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=H*f:sk:xg1icO5, HX-Languages-Length:1041, H*f:sk:Ssw@mai, H*f:Ppq 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 09:04:16 +0000 Received: by mail-vs1-f68.google.com with SMTP id x18so864593vsq.4 for ; Wed, 05 Feb 2020 01:04:15 -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=aIdz3JmUBbRSqXYtAnmFwYjNFAJJkPyO5acrm02jX9M=; b=DD4mfFoB13RO83c1hC+6u14FN39iDpIVshqw1Iaj13v5inld1poIlobLQ8d+C1ExBv fBF51idTY1+LSlf/PhkvOzasdpqNuegXLpO5TjPgyEXUsj/LyumrKSXo5hIb+5tSqt1w b8LfZyKXmV79j90zR/XwKQXdlDyKVyP+OjNMHYHAibyNzaZ6b9+bUr80W8DBNZw4gMHN ePsg+Q0PmtfQ2KFDTfs4+xdnak1+rzjZUjblMwaPnVr5cvH6rWuaGmNbW7khEIMlUw+2 m0BMVJzzMxRfGr0lDVj2ZYJUwSZmd/wEU/iIIw8/zI/AbQkpqSEE5mKCtap9KEv/8KUA sl8w== MIME-Version: 1.0 References: <20200205071944.tberxwpcrkhnat4h@gmail.com> In-Reply-To: From: Andrew Pinski Date: Wed, 05 Feb 2020 09:04: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/msg00067.txt.bz2 On Wed, Feb 5, 2020 at 12:59 AM Andrew Pinski wrote: > > 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 See the GCC side of the reason: https://gcc.gnu.org/ml/gcc-patches/2004-04/msg01093.html Thanks, Andrew Pinski > > 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