This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ld fails when ld.so is an executable


On Mon, Jun 27, 2005 at 04:13:22PM +0200, Aurelien Jarno wrote:
> The patch that follows, written by Guillem Jover <guillem@hadrons.org>,
> determines whether ld.so is an executable or a shared object, so that
> binutils conforms to the ELF standard (section 2-6 in book III), which
> says that the dynamic linker can be a shared object or an executable.

Which says nothing about whether ld should accept an exe in place of a
shared lib for linking.  ie. You could have two copies of ld.so, one for
linking, one for running.

Now, if you really want to make ld link an ET_EXEC ld.so, then do so
just for the BSD flavour that wants this functionality by defining
target specific elf_backend_object_p functions.  The patch isn't
acceptable as is.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]