libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH 6/7] Convert file name to toolchain format when invoking $NM.


From: Charles Wilson
Subject: Re: [PATCH 6/7] Convert file name to toolchain format when invoking $NM.
Date: Thu, 09 Sep 2010 09:25:51 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

On 9/9/2010 5:47 AM, Peter Rosin wrote:
> Anyway, both fail in pretty much the same way for me:
> 
> can't open the module tests/mdemo/foo1.la!
> error was: The specified module could not be found.
> can't open the module tests/mdemo/foo1!
> error was: The specified module could not be found.
> can't open the module tests/mdemo/libfoo2.la!
> error was: The specified module could not be found.
> can't open the module tests/mdemo/libfoo2!
> error was: The specified module could not be found.

Yes.

The problem is in how mdemo_static.exeS.c is constructed;
lt__PROGRAM__LTX_preloaded_symbols contains "header" entries for each
-dlpreopen'ed library, but they are:

  {"cygsub-0.dll", (void *) 0},

when they should be

  {"libsub.a", (void *) 0},

Manually making that change and re-linking fixes the error.  I just need
to track down *why* the wrong library name is being used and fix it,
without breaking mdemo.exeS.c (the one that dlpreopens the DLLs, and
SHOULD be specifying 'cygsub-0.dll' etc).

--
Chuck



reply via email to

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