libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preloading without .la


From: Pierre Ossman
Subject: Re: Preloading without .la
Date: Wed, 2 Dec 2009 18:34:06 +0100

On Wed, 2 Dec 2009 17:44:49 +0100
Pierre Ossman <address@hidden> wrote:

> I upgraded to libtool 2 the other day and was hit by this bug again.
> Has there been any work on fixing this rather large hole in the preload
> functionality?
> 

It seems things are different these days. The problem is now simply one
of name mangling. libtool stores the module names unmangled in the
preload structure, but libltdl looks for mangled names.

E.g. I have the module "module-null-sink", which in the preload list is
as follows:

  {"module-null-sink.a", (void *) 0},

But looking in ltdl.c:try_dlopen() you'll see that it looks for the
mangled name "module_null_sink" with ".a" appended.

So either libtool needs to start mangling, or libltdl needs to stop.
I'm voting for the former as symbol names can already contain the
mangled module name.

Rgds
-- 
Pierre Ossman            OpenSource-based Thin Client Technology
System Developer         Telephone: +46-13-21 46 00
Cendio AB                Web: http://www.cendio.com

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]