From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21827 invoked by alias); 17 Dec 2002 03:53:35 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 21805 invoked from network); 17 Dec 2002 03:53:32 -0000 Received: from unknown (HELO delorie.com) (207.22.48.162) by sources.redhat.com with SMTP; 17 Dec 2002 03:53:32 -0000 Received: from envy.delorie.com (envy.delorie.com [207.22.48.171]) by delorie.com (8.11.6/8.9.1) with ESMTP id gBH3rAo11552; Mon, 16 Dec 2002 22:53:10 -0500 Received: (from dj@localhost) by envy.delorie.com (8.11.6/8.11.2) id gBH3r9f14238; Mon, 16 Dec 2002 22:53:09 -0500 Date: Mon, 16 Dec 2002 19:53:00 -0000 Message-Id: <200212170353.gBH3r9f14238@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj@delorie.com using -f From: DJ Delorie To: amacleod@redhat.com CC: amodra@bigpond.net.au, binutils@sources.redhat.com, cgen@sources.redhat.com In-reply-to: <1039043233.28767.313.camel@p4> (message from Andrew MacLeod on 04 Dec 2002 18:07:12 -0500) Subject: Re: New Sanyo Stormy16 relocations References: <1039041358.28757.307.camel@p4> <20021204225643.GS27956@bubble.sa.bigpond.net.au> <1039043233.28767.313.camel@p4> X-SW-Source: 2002-q4/txt/msg00094.txt.bz2 I'm committing this approved patch on Andrew's behalf. The cgen parts were approved by FChE off-list. > bfd/ChangeLog > * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_LO16 > and R_XSTORMY16_HI16) howto entries. > (xstormy16_reloc_map): Map R_XSTORMY16_{LO,HI}16 to BFD_RELOC_{LO,HI}16. > (xstormy16_info_to_howto_rela): Use R_XSTORMY16_GNU_VTINHERIT to > determine the start of the second reloc table. > > cgen/ChangeLog > * cpu/xstormy16.cpu (imm16): Call handler immediate16. > * cpu/xstormy16.opc (parse_small_immediate): Return on '@'. > (parse_immediate16): Handle immediate16 values, which now include > @hi(label) and @lo(label) > > gas/ChangeLog > * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation > has already been set up, use it. > > include/ChangeLog > * elf/xstormy16.h (START_RELOC_NUMBERS) Add relocation numbers > for R_XSTORMY16_LO16 and R_XSTORMY16_HI16. > > opcodes/ChangeLog > * opcodes/xstormy16-asm.c: Regenerate.