From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85570 invoked by alias); 25 Jun 2018 12:16:37 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 85437 invoked by uid 89); 25 Jun 2018 12:16:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=sk:without X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Jun 2018 12:16:16 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0M5Kwt-1gNiDp04ml-00zUrC for ; Mon, 25 Jun 2018 14:16:14 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 5A89FA8197E; Mon, 25 Jun 2018 14:16:13 +0200 (CEST) Date: Mon, 25 Jun 2018 14:08:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: linker error with gcc flag -mfunction-return=thunk Message-ID: <20180625121613.GL28757@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <67f4ac9a-5fe8-14d2-031f-288bbfccfc7a@ssi-schaefer.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4LFBTxd4L5NLO6ly" Content-Disposition: inline In-Reply-To: <67f4ac9a-5fe8-14d2-031f-288bbfccfc7a@ssi-schaefer.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-06/txt/msg00276.txt.bz2 --4LFBTxd4L5NLO6ly Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1287 On Jun 25 14:08, Michael Haubenwallner wrote: > Hi, >=20 > I'm encountering a package's configure script (openssh-7.7p1) that > successfully tests for the compiler flag "-mfunction-return=3Dthunk", > which causes subsequent linker errors (and fails to identify zlib): > relocation truncated to fit: R_X86_64_32S against `.text' >=20 > The compiler used is gcc-7.3.0 with binutils-2.29.1.20171006 (current), > and the easiest test case here is: >=20 > $ echo 'int main() { return 0; }' > conftest.c > $ gcc -mfunction-return=3Dthunk conftest.c > /tmp/ccv1Ird0.o:conftest.c:(.text+0x1a): relocation truncated to fit: R_X= 86_64_32S against `.text' > collect2: error: ld returned 1 exit status >=20 > Not sure though where to finally report this problem: > * openssh, as they should do a link-test rather than compile-test > * gcc, as their generated code is wrong for cygwin > * binutils, as their ld is unable to link that code > * cygwin, as the maintainers of cygwin support in binutils+gcc >=20 > After all, openssh-7.7p1-1.src cygwin package currently fails to compile. configure with --without-hardening for the time being. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --4LFBTxd4L5NLO6ly Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlsw3Q0ACgkQ9TYGna5E T6C5hg//VX4sVME2tMIgCMPRjyaLFbvnuXi/9gPcu+iGqJbshTLVMi9mhOuKLogv g7sInHAtv67vMq6V+30lV0bcrz3t2j92P53Kn+1YjvEyAxY86+vW8ANRIUvD//Uu Ri8rjViSYRWDpzV2XzeDMRzlRYTQ45hB41QVXB4pmidquK3pe45Nt11f/WiJe3hf kq8yuKLySgRuX+fFmEImT25pQOHcPDiBr5toSEwovpj/50jhNVu0bA8THbievSnv FSYqigx5qPHjBO/4JmzwsW6lBr7lyOZBE+wsDzz+01T9NuB1vCMyHGHOvXjE6WI+ DujOrVUq8MzViZR1g/zN3e9deFEDDx7lvAwsFtR12J52Ym2F7jfmmdFXkp+ga/27 S1VYxqMLDHx+qqPtKJruG8VAmNk3eGuZqLMNGxTzzztKtxzlhWpp79PUFbMkFAHs E3wAXlQ/N2Yib4aMdSxoj4f/HvxJ1V5xlsJqgHf9UlYlDEG/Sh2raz+xU45FJvjJ ++ZrcSVpiXGTecFpKTSS4Rjoj24EpLTkUuScMNEQnSsnTDfr15Qpt7o/vEDvcmnL nVCaV6LD4XuQhq+c8SCo5XiuBVd3pDZLHaCqerXROL7gvDYXSM9ciF9fV0kylXnf Vldoz+2H5rf7ss54e50wUdFR84Oq88H2PhMU8qA9CjrGG4SSs4M= =HN1Z -----END PGP SIGNATURE----- --4LFBTxd4L5NLO6ly--