From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11031 invoked by alias); 15 Dec 2004 14:39:28 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 10987 invoked from network); 15 Dec 2004 14:39:20 -0000 Received: from unknown (HELO fra-del-01.spheriq.net) (195.46.51.97) by sourceware.org with SMTP; 15 Dec 2004 14:39:20 -0000 Received: from fra-inc-08.spheriq.net (fra-inc-08.spheriq.net [195.46.51.72]) by fra-del-01.spheriq.net with ESMTP id iBFEdKOE032361 for ; Wed, 15 Dec 2004 14:39:20 GMT Received: from fra-out-03.spheriq.net (fra-out-03.spheriq.net [195.46.51.131]) by fra-inc-08.spheriq.net with ESMTP id iBFEdG1X011047 for ; Wed, 15 Dec 2004 14:39:16 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-03.spheriq.net with ESMTP id iBFEdH8E005995 for ; Wed, 15 Dec 2004 14:39:17 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-02.spheriq.net with ESMTP id iBFEdD0f004297 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 15 Dec 2004 14:39:16 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E90E8DBC7 for ; Wed, 15 Dec 2004 14:35:28 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 18DFC47343; Wed, 15 Dec 2004 14:35:01 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B244C75998 for ; Wed, 15 Dec 2004 14:35:00 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 016FB47348 for ; Wed, 15 Dec 2004 14:34:59 +0000 (GMT) Received: from st.com (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.4.4-GR) with ESMTP id AQD02423 (AUTH "andrew stubbs"); Wed, 15 Dec 2004 14:34:31 GMT Message-ID: <41C04BB9.30D0E793@st.com> Date: Wed, 15 Dec 2004 14:39:00 -0000 From: Andrew STUBBS Organization: STMicroelectronics MIME-Version: 1.0 To: binutils Subject: [SH64 Patch] Add missing relocation Content-Type: multipart/mixed; boundary="------------3E0E40EF8F9CC1B0479B80C6" X-O-Virus-Status: No X-O-URL-Status: Not Scanned X-O-CSpam-Status: Not Scanned X-O-Spam-Status: Not scanned X-O-Image-Status: Not Scanned X-O-Att-Status: No X-SpheriQ-Ver: 1.8.3 X-SW-Source: 2004-12/txt/msg00163.txt.bz2 This is a multi-part message in MIME format. --------------3E0E40EF8F9CC1B0479B80C6 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 282 The relocation BFD_RELOC_SH_IMMS10BY8 appears to be only partially implemented. The number is defined but there is no entry in the switch statement in tc-sh64.c. The attached patch should sort out the problem. -- Andrew Stubbs andrew.stubbs@st.com (aka. andrew.stubbs@superh.com) --------------3E0E40EF8F9CC1B0479B80C6 Content-Type: text/plain; charset=us-ascii; name="sh64-reloc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sh64-reloc.patch" Content-length: 691 2004-12-14 Andrew Stubbs * config/tc-sh64.c (shmedia_md_apply_fix3): Add missing BFD_RELOC_SH_IMMS10BY8 relocation. --- src/gas/config/tc-sh64.c 2004-01-14 21:07:45.000000000 +0000 +++ src/gas/config/tc-sh64.c 2004-12-14 11:33:17.000000000 +0000 @@ -739,6 +741,11 @@ shmedia_md_apply_fix3 (fixS *fixP, value insn | ((val & (0x3ff << 2)) << (10 - 2)), 4); break; + case BFD_RELOC_SH_IMMS10BY8: + md_number_to_chars (buf, + insn | ((val & (0x3ff << 3)) << (10 - 3)), 4); + break; + case BFD_RELOC_SH_SHMEDIA_CODE: /* We just ignore and remove this one for the moment. FIXME: Use it when implementing relaxing. */ --------------3E0E40EF8F9CC1B0479B80C6--