delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/02/05:08:10

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=w601P/IdrI60qA/R6jlkw4NZFKE0nvesGu0QqMNXEFyfR42xAGRZv
bMH25sJ9XsmGt6O9cISwKnemyhoBmgtrhnufgATRIraJc7LFhVDgUIGHXEOAbpS2
pucfHewT43dkgnvtdiH39bClzjM0dIrqyI9JRTkGb7UU8Drt9xjPyM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=zoZusCXbMdjYMzQIS1OWfG3SNPU=; b=GCVd6jSly3kRON4E3yNrh5tHS5sM
c8rrSlCk7IGRLZ/Wpcj29gYWoPTVnyAON3nKTtmNl5+WHatoaii7rCjfN0OvjXjM
S70yVM2hAmC+6HTwITMGqGGcF0HK5y97N12IjU64B9d3B8Kq19Ej1b1Um7GfYlJ+
os4FeBQ0nwR85VI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 2 Apr 2014 11:07:50 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Possibly wrong address passed to callq asm instruction within MPIR test binaries
Message-ID: <20140402090750.GP2508@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAHhGz8_eESbCpCWivD_G9ciFbE4VsZntZyRdOOOtd2PXUSsmgg AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAHhGz8_eESbCpCWivD_G9ciFbE4VsZntZyRdOOOtd2PXUSsmgg@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

--sT9gWZPUZYhvPS56
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Apr  2 00:07, Jean-Pierre Flori wrote:
> Dear all,
>=20
> It's amazing to see how well Cygwin64 is going.
> Thanks for your hard work.
>=20
> 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.
>=20
> 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

This looks suspicious.  On x86_64 this kind of instruction is usually
PC-relative or uses a jump table, because x86_64 uses the small code
model by default (medium model on Cygwin).

> within the test binary and that yields a nice segfault.
> Please see https://groups.google.com/d/msg/mpir-devel/KzsxIWhVx8A/EAUoP4y=
bWOMJ
> and the few following post for more details.
>=20
> For sure, we don't get what's going on here.
> Would you have any clue?

Not without a more detailed report.  The aforementioned link does not
contain pointers to the source, for instance.  Also, a simple testcase
might be helpful.

If you suspect a linker bug, you might contemplate to ask on the
binutils mailing list binutils AT sourceware DOT org which is where ld
is maintained.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--sT9gWZPUZYhvPS56
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTO9NmAAoJEPU2Bp2uRE+gmTAP/2avW5LjDFh/JAtepzRRG3CT
ZDkzBy82hIMELlu6ry+ZAw3jW0gGfxawcTWZ7s08UOsu63ErrWcH6USy+gZtINJU
REskl37WkjMlfs7f6VWuID/c7W+oARSLBEQ91F3gcGIPzsF6pLUNerFvfHYCWnQk
0hqXloeBmLHToZq+5e35LnIEWR6pxy50osYBAQeIvS8uu8OAvmOSN4ntyjme/1MA
h9mhYqh2mLudvqH8pPGW1ByA9m7LPeYVBmJnDOPaS3anGJCNGmupXz6J7GASHK7Z
kImrmr7HCc6XfeKkDFlYsfDg2IRirTgNVCHiglECtT4gmvIuiP7+QaLtsqb0qw+s
ciIW0LGXdnnZpvJPyHgOt/O3YBPozTln5OuHKb1DyFXwSzAL7VgfRgQsDSZXuNjw
39ufB1HQbkxiwOig3Amc42hP4RYGFVSrp8g1DUcR9tmoOW0xlu4AAvqIthB721GP
LQ0wA5e7CLb8sm0LBm8ola5no4k0SSaPgW2Wtk2mOuO8F7NArdqPg+ceCPgWFt87
xQWYo6WPt8Z7h40rXzcMpYY+BvfDG5WLJBkQyMd76WwCcEkuXmRSs7m1/ueLQ0u9
sPYWqfttApVuR2p8ZLjj9+9h9hwvPK62v3Rma8eOk6pSBFjyVjmgum6mGGhU7i5F
8jcSJk6xGxeb94vLxJtf
=Ru5E
-----END PGP SIGNATURE-----

--sT9gWZPUZYhvPS56--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019