From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32333 invoked by alias); 31 Jan 2005 17:45:14 -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 31842 invoked from network); 31 Jan 2005 17:44:41 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 31 Jan 2005 17:44:41 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j0VHif8v006285 for ; Mon, 31 Jan 2005 12:44:41 -0500 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j0VHieO04884; Mon, 31 Jan 2005 12:44:40 -0500 Received: from [172.31.0.98] (vpnuser13.surrey.redhat.com [172.16.9.13]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j0VHid0W032302; Mon, 31 Jan 2005 17:44:39 GMT Message-ID: <41FE70BE.3000204@redhat.com> Date: Mon, 31 Jan 2005 17:45:00 -0000 From: Nick Clifton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) MIME-Version: 1.0 To: Heiko Nardmann CC: binutils@sources.redhat.com Subject: Re: Q: support for LE (Linear Executable) files? References: <200501211025.16363.heiko.nardmann@secunet.com> <41F0D41E.9010006@redhat.com> <200501211544.46580.heiko.nardmann@secunet.com> In-Reply-To: <200501211544.46580.heiko.nardmann@secunet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-01/txt/msg00559.txt.bz2 Hi Heiko, > Since the format is documented I would like to start to add the recognition. > Which part of binutils do I have to start with? The bfd/ directory is where you should begin. You will need to create a new file in here along the lines of some of the file-format specific files that already exist, eg pef.c, vms.c, oasys.c Of particular interest will be the LE_object_p() function whose purpose is to recognise when a particular file is in LE format. You may want to create an entirely new configure target for files of this format, or you may to add support for this format to an already existing target (eg mingw32, or cygwin). Either way you will need to modify the bfd/config.bfd and ld/configure.tgt files, and probably the bfd/archures.c and bfd/reloc.c files. Feel free to ask questions on this list if you have problems. Cheers Nick