This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Possibly wrong address passed to callq asm instruction within MPIR test binaries
- From: Jean-Pierre Flori <jpflori at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 2 Apr 2014 06:12:46 +0000 (UTC)
- Subject: Re: Possibly wrong address passed to callq asm instruction within MPIR test binaries
- Authentication-results: sourceware.org; auth=none
- References: <CAHhGz8_eESbCpCWivD_G9ciFbE4VsZntZyRdOOOtd2PXUSsmgg at mail dot gmail dot com>
Le Wed, 02 Apr 2014 00:07:12 +0200, Jean-Pierre Flori a ÃcritÂ:
> Dear all,
>
> It's amazing to see how well Cygwin64 is going.
> Thanks for your hard work.
>
> While preparing the new MPIR release, which will be the first one to
> support Cygwin4, we encountered problems running MPIR testsuite when
> MPIR was configured to produce a shared lib.
> That's with latest cygwin/binutils/gcc/g++ from today.
>
> It seems that a call to the MPN_ZERO macro, which on my setup is at
> 0x4ff2746c0 in the shared lib but we get the instruction:
> callq 0xff2746c0 within the test binary and that yields a nice segfault.
> Please see
> https://groups.google.com/d/msg/mpir-devel/KzsxIWhVx8A/EAUoP4ybWOMJ and
> the few following post for more details.
>
> For sure, we don't get what's going on here.
> Would you have any clue?
> Might ld decide for some reason to trim the macro address to 4 bytes
> rather than 8?
>
> Best,
Sorry for the noise, we found the issue.
Apparently it was some DLL export/import issue...
See https://groups.google.com/d/msg/mpir-devel/KzsxIWhVx8A/D6-Z5SsLdGsJ
Best,
JP
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple