aarch64 and gets(3)

Pedro Giffuni pfg at FreeBSD.org
Wed Jul 15 15:50:33 UTC 2015


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?

Regards,

Pedro.

[1] https://reviews.freebsd.org/D3043


More information about the freebsd-arm mailing list