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:
> [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.


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