This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] ld fails when ld.so is an executable
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: binutils at sourceware dot org
- Date: Mon, 4 Jul 2005 13:20:59 +0930
- Subject: Re: [PATCH] ld fails when ld.so is an executable
- References: <20050627141322.GA16377@bode.aurel32.net>
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