From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 21 20:44:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9AE01065670 for ; Fri, 21 Mar 2008 20:44:21 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 46C858FC24 for ; Fri, 21 Mar 2008 20:44:21 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-001-036.pools.arcor-ip.net [88.66.1.36]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis) id 0ML29c-1Jco670s64-000283; Fri, 21 Mar 2008 21:44:19 +0100 Received: (qmail 4855 invoked from network); 21 Mar 2008 20:43:31 -0000 Received: from myhost.laiers.local (192.168.4.151) by mx.laiers.local with SMTP; 21 Mar 2008 20:43:31 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Fri, 21 Mar 2008 21:42:56 +0100 User-Agent: KMail/1.9.7 References: <20080321200319.GA13917@plan0> In-Reply-To: <20080321200319.GA13917@plan0> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803212142.56886.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1/Q7m3O+D60gTANBFjX7mdA5AzKXI+91bHvASu YxNLjB7DZLhnP7iGCtsV0bxDKp/nDbI50czf9DG8lL+VGzAhAg BV5/2iHu+EzXM2+TjUCNw== Cc: Kai Wang Subject: Re: features of objcopy X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 20:44:21 -0000 On Friday 21 March 2008 21:03:19 Kai Wang wrote: > Hi list, > > I'm working on a BSD Licensed objcopy/strip rewrite(in p4) based on > libelf, I really want to know the answers to a few questions listed > below, and please do not hesitate if you have other related > suggestions. Thanks in advance! > > 1. Do you often use object/strip on 'ar' archives? > > 2. Do you often convert ELF to raw binary, iHex, S-Record or > vice versa? > > 3. What features do you like to add into objcopy? > > 4. What features would be useful for FreeBSD build system > and is currently missing in objcopy? take a look at how we currently build firmware(9) modules (this concerns 2-4). Right now we use ld to convert a raw binary to something we can link and have basic symbols to find the start and length of the binary. This works, but not for all archs (ia64) and could be more comfortable. I remember that we tried GNU objcopy at first, but it didn't give what we were looking for - don't recall details, though. Let me know if you have questions about this. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News