aarch64 and gets(3)

Warner Losh imp at bsdimp.com
Wed Jul 15 16:02:33 UTC 2015


> On Jul 15, 2015, at 9:50 AM, Pedro Giffuni <pfg at FreeBSD.org> wrote:
> 
> Hello;
> 
> In this GSoC to port the FORTIFY_SOURCE libc extension to FreeBSD we
> are getting this build error only on arm64:
> 
> ...
> ===> lib/libcompiler_rt (obj,depend,all,install)
> ===> 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
> 
> make[6]: stopped in /scratch/tmp/pfg/head/lib/libc
> 1 error
> ...
> _____
> 
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20150715/b30cd100/attachment.bin>


More information about the freebsd-arm mailing list