Date: Wed, 15 Jul 2015 10:02:29 -0600 From: Warner Losh <imp@bsdimp.com> To: Pedro Giffuni <pfg@FreeBSD.org> Cc: freebsd-arm@FreeBSD.org, Oliver Pinter <oliver.pinter@hardenedbsd.org> Subject: Re: aarch64 and gets(3) Message-ID: <CABCDFB5-8FDB-46BE-9E20-EC54CDE0A878@bsdimp.com> In-Reply-To: <55A6815A.6030703@FreeBSD.org> References: <55A6815A.6030703@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <pfg@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABCDFB5-8FDB-46BE-9E20-EC54CDE0A878>