From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1663 invoked by alias); 12 Dec 2007 18:11:31 -0000 Received: (qmail 1654 invoked by uid 22791); 12 Dec 2007 18:11:30 -0000 X-Spam-Check-By: sourceware.org Received: from mail201.messagelabs.com (HELO mail201.messagelabs.com) (216.82.254.211) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 12 Dec 2007 18:11:19 +0000 X-VirusChecked: Checked X-Env-Sender: manders1@csc.com X-Msg-Ref: server-3.tower-201.messagelabs.com!1197483072!749005!3 X-StarScan-Version: 5.5.12.14.2; banners=-,-,- Received: (qmail 31852 invoked from network); 12 Dec 2007 18:11:17 -0000 Received: from amer-mta102.csc.com (HELO amer-mta102.csc.com) (20.137.2.88) by server-3.tower-201.messagelabs.com with AES256-SHA encrypted SMTP; 12 Dec 2007 18:11:17 -0000 Received: from amer-gw09.amer.csc.com (amer-gw09.amer.csc.com [20.6.39.245]) by amer-mta102.csc.com (Switch-3.3.0/Switch-3.3.0) with ESMTP id lBCIBoKg029350 for ; Wed, 12 Dec 2007 13:11:55 -0500 To: binutils@sourceware.org Subject: GAS Relocation and Relaxation of 24-bit Address MIME-Version: 1.0 X-Mailer: Lotus Notes 652HF83 November 04, 2004 From: Mark P Anderson Message-ID: Date: Wed, 12 Dec 2007 18:11:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-IsSubscribed: yes 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 X-SW-Source: 2007-12/txt/msg00074.txt.bz2 I'm working on a gas port for a machine that has variable length instructions that are multiples of 1 byte (8-bits). The address, both PC relative and absolute, can be 8-bits, 16-bits or 24-bits in length that reside in bytes past the opcode bytes. >From looking at the bfd.c code it seems like addresses have to be either 16-bits or 32-bits when reading or writing to the bfd. Am I reading the code right? Am I going to have a big problem trying to read and write 24-bit addresses? Am I going to have problems with variable length, byte-oriented instruction encoding?