From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29926 invoked by alias); 7 Jul 2002 14:36:17 -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 29919 invoked from network); 7 Jul 2002 14:36:16 -0000 Received: from unknown (HELO sccrmhc03.attbi.com) (204.127.202.63) by sources.redhat.com with SMTP; 7 Jul 2002 14:36:16 -0000 Received: from ocean.lucon.org ([12.234.143.38]) by sccrmhc03.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020707143615.FTXT903.sccrmhc03.attbi.com@ocean.lucon.org>; Sun, 7 Jul 2002 14:36:15 +0000 Received: by ocean.lucon.org (Postfix, from userid 1000) id 779DC125D5; Sun, 7 Jul 2002 07:36:14 -0700 (PDT) Date: Sun, 07 Jul 2002 12:45:00 -0000 From: "H. J. Lu" To: =?iso-8859-1?Q?Andr=E9_Hauser?= Cc: binutils@sources.redhat.com Subject: Re: Change an object file without explicit copying Message-ID: <20020707073614.A23481@lucon.org> References: <19236.1026021655@www29.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <19236.1026021655@www29.gmx.net>; from aphauser@gmx.de on Sun, Jul 07, 2002 at 08:00:55AM +0200 X-SW-Source: 2002-07/txt/msg00138.txt.bz2 On Sun, Jul 07, 2002 at 08:00:55AM +0200, André Hauser wrote: > Dear forum, > I want to use bfd to update an existing ELF file, i.e. open a bfd, > perform some changes and save the file afterwards. > Is there a way of doing this without copying the source file? I found > only the two functions bfd_openw() and bfd_openr() for creating a new > resp. opening a bfd; calling bfd_make_writable() in conjunction with > bfd_openr() did not work, my object file wasn't updated after closing > the bfd. > Have you tried libelf? H.J.