From owner-freebsd-arm@freebsd.org Wed Jul 15 16:02:33 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5C909A16F8 for ; Wed, 15 Jul 2015 16:02:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 756EC1C5F for ; Wed, 15 Jul 2015 16:02:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by ieik3 with SMTP id k3so37101855iei.3 for ; Wed, 15 Jul 2015 09:02:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=D9n28QdM0v6R3ypre2MGsyVXdTc9gLTKFmXWZ55ciO4=; b=JoeTguiFZP9DPWIaB9YTyLMG4zAFmfR42UZCCLNVG4XnFN1d3tEZ4yNtPZk4ACYu9P 4m1XtN5eARfW6hvggTui/t3gYzomV8PIRo6xeo+KozVr2xeh+YlEpiAaNfRa9aIr0BZF fH5dAoo4TU0BhrZf+XZciNToeu3Jy0zljxByTmBeDW9vNrGHxllb376UJN2NOr1ratkA HU8geMZBn+/YWKQOKgxUtFUMY1GvHaVVthtnIDD54fQi5cr/ycywZbuiWofRJlTiD2LR hyb4FMBWdQsU5AMy//cmtSLzPUn+Sbh2Sb+IKyaomuKJW+2nV2WY/G1m+MYxA6kXkLV6 Gdpg== X-Gm-Message-State: ALoCoQmc51hqZmBvDXxuJ/BrovbuniQJRjcbj4PHQkCl5QtptIO8PzTgVHchQuptMm19Mi4TMblb X-Received: by 10.50.79.196 with SMTP id l4mr24975275igx.48.1436976151734; Wed, 15 Jul 2015 09:02:31 -0700 (PDT) Received: from [10.0.27.94] ([96.88.71.26]) by smtp.gmail.com with ESMTPSA id e69sm3034845ioe.31.2015.07.15.09.02.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jul 2015 09:02:30 -0700 (PDT) Sender: Warner Losh Subject: Re: aarch64 and gets(3) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_441F86BD-43A6-445F-8BB7-66EFC4998BEA"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <55A6815A.6030703@FreeBSD.org> Date: Wed, 15 Jul 2015 10:02:29 -0600 Cc: freebsd-arm@FreeBSD.org, Oliver Pinter Message-Id: References: <55A6815A.6030703@FreeBSD.org> To: Pedro Giffuni X-Mailer: Apple Mail (2.2102) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 16:02:33 -0000 --Apple-Mail=_441F86BD-43A6-445F-8BB7-66EFC4998BEA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jul 15, 2015, at 9:50 AM, Pedro Giffuni wrote: >=20 > Hello; >=20 > In this GSoC to port the FORTIFY_SOURCE libc extension to FreeBSD we > are getting this build error only on arm64: >=20 > ... > =3D=3D=3D> lib/libcompiler_rt (obj,depend,all,install) > =3D=3D=3D> lib/libc (obj,depend,all,install) > __gets_chk.So: In function `__gets_chk': > /scratch/tmp/pfg/head/lib/libc/secure/__gets_chk.c:(.text+0x84): = warning: warning: this program uses gets(), which is unsafe. > cc: error: linker command failed with exit code 1 (use -v to see = invocation) > --- libc.so.7 --- > *** [libc.so.7] Error code 1 >=20 > make[6]: stopped in /scratch/tmp/pfg/head/lib/libc > 1 error > ... > _____ >=20 > Is arm64 somehow special wrt to gets(3) ? Any suggestion on how to > work around this? It might be special wrt -Werror and linker warnings since it uses a = newer ld than is in the tree. Warner --Apple-Mail=_441F86BD-43A6-445F-8BB7-66EFC4998BEA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVpoQWAAoJEGwc0Sh9sBEA5bQP/iFToMRv13yuKJDiYuYROzqv 1claPE1N6F9wZ5bUE7ks2rmWkL+J/Fi/a1HYwZUPKDfDiA+bGjQaJSnHT7FAaUnt c1goGxsBeXs+lwUXC4Yea1pqMDDaR0lQEaIaCoPO2pgxZwZS5PsfQ4f2lE8HTjdq EAf4WIV9rqDxR0STbH5JtVoIHOxCwNgxgArumwC7D8i35YbQyJLgym8roByJIVJw Z4r+0xZX/4VR7GOt3bNYw0aUErvwMw2X9Pr8YCnc05ePt+5QgXSlavEhfrACQuKK vjBfUgleU11wCU42AOxUZ23agEHWEKHZ8fFRQ35tuajuKbnIUfovEGLJDa24uIae N9d5R/rcnoW3rJre28oGu4OKZ4BTpnnSj9SUcTEHe4/hdQmi4wZp50FbbiuA7sxz JS/Z/O7wAN7x9zeaDyrV6N4n59XQBMb49FU1aVtuikWdlxn70Gt5Yg5opr4j7x0o 3m3/YnTmEFDIU+iDcJDE3jA5bZINXqKhMaXWajJECjnHVuJCPD2evz0tCDE+E3ku gr3sRIqtRiIMKe2M44dc7t2p8KPaadk/civbKk6wnCahAUdA7S/wLjvJygU4afpC XGbxAc3DN20Xg789J8GD8+7AnnuSLouGZCP3eavjlJE0w93dGavun1tCjh4uqrle EdwhUP+trTtfFcrIakl/ =Veri -----END PGP SIGNATURE----- --Apple-Mail=_441F86BD-43A6-445F-8BB7-66EFC4998BEA--