Is there a way to build a non-PIC shared library with l4env?

Adam Lackorzynski adam at os.inf.tu-dresden.de
Fri Oct 7 00:36:34 CEST 2011


On Fri Oct 07, 2011 at 10:31:03 +1300, Valery V. Sedletski wrote:
> On Thu, 6 Oct 2011 23:27:00 +0200, Adam Lackorzynski wrote:
> 
> >
> >There's no way to change that address at runtime. Please just change it
> >in the code (loader/server/src/app.cc, APP_ADDR_LDSO) and try that.
> >Changing the way the linking is done is probably much more troublesome.
> >In L4Re this should work better as the lower region of the virtual
> >address space is not used for that purpose.
>
> Yes, so, it is hardcoded in loader binary... And it could probably break the compatibility
> with something. -- But I've got another idea. I could try also
> to avoid using ldso at all. -- Just compile in the libdl support without runtime linker support.
> The libdl sources contain a define #ifdef SHARED, so this gives an idea that libdl could
> be compiled as a static library. And even, the symbols imported from ldso, are #ifdef'ed, so
> maybe, it could be linked statically with the binary. Maybe, that can help..

Ok, try it.


Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/




More information about the l4-hackers mailing list