diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-08-27 22:10:17 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-08-27 22:10:17 +0200 |
commit | 97e02ad23392f929862d6a04643e7f2fd91baebc (patch) | |
tree | e751c7bcccbfdc40839a54ff97b405f01d070674 /hurd | |
parent | 2ef8d46913b10cb1cf8adddfe80ce8d1b57d4f46 (diff) | |
download | glibc-97e02ad23392f929862d6a04643e7f2fd91baebc.tar.gz glibc-97e02ad23392f929862d6a04643e7f2fd91baebc.tar.xz glibc-97e02ad23392f929862d6a04643e7f2fd91baebc.zip |
hurd: fix build with -fstack-protector-strong
libmachuser and libhurduser also need stack_chk_fail_local and they do not link against libc_nonshared. * mach/stack_chk_fail_local.c: New file. * hurd/stack_chk_fail_local.c: New file. * mach/Machrules ($(interface-library)-routines): Add stack_chk_fail_local. * mach/Versions (GLIBC_2.4): Add __stack_chk_fail. * hurd/Versions (GLIBC_2.4): Add __stack_chk_fail.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/Versions | 4 | ||||
-rw-r--r-- | hurd/stack_chk_fail_local.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/hurd/Versions b/hurd/Versions index 77f5b4271e..011edc7384 100644 --- a/hurd/Versions +++ b/hurd/Versions @@ -129,6 +129,10 @@ libc { # functions used in macros & inline functions __errno_location; } + GLIBC_2.4 { + # functions used by RPC stubs + __stack_chk_fail + } HURD_CTHREADS_0.3 { # weak refs to libthreads functions that libc calls iff libthreads in use diff --git a/hurd/stack_chk_fail_local.c b/hurd/stack_chk_fail_local.c new file mode 100644 index 0000000000..305871fbc0 --- /dev/null +++ b/hurd/stack_chk_fail_local.c @@ -0,0 +1 @@ +#include <debug/stack_chk_fail_local.c> |