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: "H. J. Lu" <hjl at lucon dot org>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: binutils at sourceware dot org
- Date: Mon, 27 Jun 2005 08:57:22 -0700
- 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:
> [Please Cc me on reply as I am not subscribed to the mailing list.]
>
> Hi!
>
> On GNU/k*BSD, the dynamic loader "ld.so*" is declared as an executable
> so that the kernel can exec it). When turned as an executable, it fails
> to link anything. Note that the problems also appears when using Linux
> emulation on FreeBSD.
>
> 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.
>
I don't like it. You should modify your kernel to support running
ld.so as ET_DYN.
H.J.