This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: ELF executable relinking
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Daniel Jacobowitz'" <drow at false dot org>,"'Francesco Casadei'" <francesco dot casadei at gmail dot com>
- Cc: <binutils at sourceware dot org>
- Date: Wed, 13 Apr 2005 17:22:02 +0100
- Subject: RE: ELF executable relinking
----Original Message----
>From: Daniel Jacobowitz
>Sent: 13 April 2005 17:03
> On Wed, Apr 13, 2005 at 11:50:33AM -0400, Francesco Casadei wrote:
>> Basically, I want to add new unrelated code to an existing ELF executable
>> ET_EXEC), by relinking it with a relocatable object (ET_REL).
>> Is it possible to input an executable and one or more relocatable
>> object to the link
>> editor and generate a new executable with code and data from all objects?
>
> Generally no.
That's why the non-relocatable link is also called a "final" link: it
tends to be fairly final! (It discards information that would be needed to
link further object files in).
cheers,
DaveK
--
Can't think of a witty .sigline today....