delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/25/08:16:48

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=fyhswPVO8WAVuEjUObVFrYi06rEcq1kpPZIRL5h6H1xNgxtrjjfcZ
JxIc+uV4PWv9CbzHuqKCz+a6RJORQHyBiTxPlPD5Ad0gnLUnivHSUFQXggfrWW60
B0XS6ohnH5KR4wdDLSsR+3Vjx3dwMtxQLbyefX+CNyAAOTgwoDoD94=
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=TY5IEer1+ACselc994/mZ5e7On4=; b=yvicu79jqYt6za1hZ2onzPakzr9S
gsuZkqsGeEfC9DETik4Z7wVi4ZfiF6NVFtGadgdVCFwnlVSQZWj9seo7j/WXTgZ5
ErL94ujZy9s2pB9HSLOTE5PJ0gB5ZNq6FvrhSRGdJWpInveS/U3OPH45hfpCWLaZ
z9M6ljgCFZbB80Y=
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=-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
Date: Mon, 25 Jun 2018 14:16:13 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: linker error with gcc flag -mfunction-return=thunk
Message-ID: <20180625121613.GL28757@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <67f4ac9a-5fe8-14d2-031f-288bbfccfc7a AT ssi-schaefer DOT com>
MIME-Version: 1.0
In-Reply-To: <67f4ac9a-5fe8-14d2-031f-288bbfccfc7a@ssi-schaefer.com>
User-Agent: Mutt/1.9.2 (2017-12-15)

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

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"

-----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--

- Raw text -


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