]> git.ipfire.org Git - thirdparty/glibc.git/commit
Unconditionally define __stack_chk_guard [BZ #26817] maskray/stack_chk_guard
authorFangrui Song <maskray@google.com>
Tue, 12 Jan 2021 07:56:32 +0000 (23:56 -0800)
committerFangrui Song <maskray@google.com>
Tue, 12 Jan 2021 07:56:32 +0000 (23:56 -0800)
commit0b11ca56fe0473a41a6e9cdc5d228c7d1e0d6d72
tree6d9013a7b236e33deee47f247f71aa60eec06477
parent87d583c6e8cd0e49f64da76636ebeec033298b4d
Unconditionally define __stack_chk_guard [BZ #26817]

__stack_chk_guard is currently unavailable on architectures which define
THREAD_SET_STACK_GUARD, so {gcc,clang} -fstack-protector
-mstack-protector-guard=global will fail to link due to the undefined
symbol.

Define __stack_chk_guard to make -mstack-protector-guard=global compiled
user programs work. `#define THREAD_SET_STACK_GUARD` code is moved
outside of `#ifndef __ASSEMBLER__` so that cpp can preprocess
elf/Versions.
22 files changed:
csu/libc-start.c
elf/Versions
elf/rtld.c
sysdeps/i386/nptl/tls.h
sysdeps/ia64/nptl/tls.h
sysdeps/mach/hurd/i386/ld.abilist
sysdeps/mach/hurd/i386/tls.h
sysdeps/powerpc/nptl/tls.h
sysdeps/s390/nptl/tls.h
sysdeps/sparc/nptl/tls.h
sysdeps/unix/sysv/linux/i386/ld.abilist
sysdeps/unix/sysv/linux/ia64/ld.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc64/be/ld.abilist
sysdeps/unix/sysv/linux/powerpc/powerpc64/le/ld.abilist
sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist
sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist
sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist
sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist
sysdeps/unix/sysv/linux/x86_64/64/ld.abilist
sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist
sysdeps/x86_64/nptl/tls.h