This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [BUG] libffi needs to be rebuilt for i386
- From: Pavel Fedin <pavel_fedin at mail dot ru>
- To: Marco Atzeri <marco dot atzeri at gmail dot com>
- Cc: cygwin-apps at cygwin dot com
- Date: Mon, 13 Oct 2014 23:44:24 +0400
- Subject: Re: [BUG] libffi needs to be rebuilt for i386
- Authentication-results: sourceware.org; auth=none
- References: <004c01cfe6c9$a280d1c0$e7827540$%fedin at samsung dot com> <543BA1E9 dot 1090706 at gmail dot com>
Hello, Marco.
Monday, October 13, 2014, 13:56:57 you wrote:
> FYI
> debug symbols are in libffi-debuginfo package
Thank you, i know this.
Actually, when i started my research, i noticed that DllMain() and
corresponding init code is not called for libffi. I started to examine
that. I don't know the exact mechanism of how DllMain() becomes
so special, but i suggested that it might be up to symbol name. I used
objdump -t on libffi, and it displayed nothing. I became curious and
checked some other libraries, including cygwin1.dll. All these
libraries had populated symbol tables. I suggested that this may be
the thing that goes wrong, rebuilt the libffi, and installed
instripped version (just by copying the file). It perfectly worked,
the problem is gone.
Just for curiosity i tried 'make install' which strips the symbols.
This variant also worked fine. So, apparently, the root cause was
likely some bug in the linker which was used to build the original
package.
--
Kind regards,
Pavel