From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by sourceware.org (Postfix) with ESMTP id D18BA3858C27 for ; Tue, 2 Aug 2022 23:59:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D18BA3858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id B13D892009C; Wed, 3 Aug 2022 01:59:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id ACBFA92009B; Wed, 3 Aug 2022 00:59:09 +0100 (BST) Date: Wed, 3 Aug 2022 00:59:09 +0100 (BST) From: "Maciej W. Rozycki" To: Alan Modra cc: binutils@sourceware.org Subject: Re: BFD_RELOC_MIPS_16 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1162.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_INFOUSMEBIZ, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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, 02 Aug 2022 23:59:12 -0000 On Tue, 14 Jun 2022, Alan Modra via Binutils wrote: > time. Like BFD_RELOC_8, BFD_RELOC_16 now has no corresponding object > file relocation, and thus .half, .hword, .short and .dc.w must be > resolved at assembly time. That should be R_MIPS_REL16 AFAICT, reloc #33 according to MIPS NewABI documentation[1]: Name Value Field Symbol Calculation R_MIPS_REL16 33 V-hw16 any S+A and we have all the bits including a howto in place. I wonder what happened that we never had it linked with BFD_RELOC_16. References: [1] "64-bit ELF Object File Specification", Draft Version 2.5, MIPS Technologies / Silicon Graphics Computer Systems, Document Number 007-4658-001, Table 32 "Relocation Types", p. 46 Maciej