OSDN Git Service

guard *_chk() related stuff with UCLIBC_HAS_FORTIFY
authorPeter S. Mazinger <ps.m@gmx.net>
Wed, 9 Mar 2011 08:23:48 +0000 (09:23 +0100)
committerPeter S. Mazinger <ps.m@gmx.net>
Wed, 9 Mar 2011 08:23:48 +0000 (09:23 +0100)
commit82098ab9b853c33ee8ade61c9510b295cc696de1
tree8f4cbadd3425d95002e78cafdbdc0bdf32cedc41
parenteb9cca27b385873c6788b18a13d918c873540866
guard *_chk() related stuff with UCLIBC_HAS_FORTIFY

Guard x86_64 memset_chk/memcpy_chk be guarded by UCLIBC_HAS_FORTIFY.
Compile ssp.c if one of SSP/FORTIFY is defined.
Guard __chk_fail() with UCLIBC_HAS_FORTIFY and move its prototype to libc-internal.h.
Disable _FORTIFY_SOURCE if UCLIBC_HAS_FORTIFY is not set.

The config option itself is omitted on purpose,
headers need to be reviewed and generic *_chk() functions need to be first provided.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
include/features.h
include/libc-internal.h
libc/string/x86_64/memcpy.S
libc/string/x86_64/memset.S
libc/sysdeps/linux/common/Makefile.in
libc/sysdeps/linux/common/ssp.c