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

H. J. Lu hjl@lucon.org
Mon Jun 27 15:57:00 GMT 2005


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.



More information about the Binutils mailing list