From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72991 invoked by alias); 5 Feb 2020 07:19:51 -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 72983 invoked by uid 89); 5 Feb 2020 07:19:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_INFOUSMEBIZ,KAM_SHORT,MALFORMED_FREEMAIL,MISSING_HEADERS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=*why* X-HELO: mail-pf1-f176.google.com Received: from mail-pf1-f176.google.com (HELO mail-pf1-f176.google.com) (209.85.210.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Feb 2020 07:19:47 +0000 Received: by mail-pf1-f176.google.com with SMTP id 4so717413pfz.9 for ; Tue, 04 Feb 2020 23:19:47 -0800 (PST) Return-Path: Received: from localhost (c-71-204-169-238.hsd1.ca.comcast.net. [71.204.169.238]) by smtp.gmail.com with ESMTPSA id 13sm27075034pfj.68.2020.02.04.23.19.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 23:19:45 -0800 (PST) Date: Wed, 05 Feb 2020 07:19:00 -0000 From: Fangrui Song Cc: binutils@sourceware.org Subject: [MIPS] Can we have R_MIPS_PC64? Message-ID: <20200205071944.tberxwpcrkhnat4h@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-SW-Source: 2020-02/txt/msg00063.txt.bz2 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*.) 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