mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
hurd: Add stack guard support
* sysdeps/mach/hurd/i386/tls.h (THREAD_SET_STACK_GUARD, THREAD_COPY_STACK_GUARD): New macros * sysdeps/mach/hurd/i386/ld.abilist (__stack_chk_guard): Remove symbol.
This commit is contained in:
parent
8dbb7a08ec
commit
ecfa912f42
@ -18,4 +18,3 @@ GLIBC_2.2.6 _r_debug D 0x14
|
||||
GLIBC_2.2.6 abort F
|
||||
GLIBC_2.3 ___tls_get_addr F
|
||||
GLIBC_2.3 __tls_get_addr F
|
||||
GLIBC_2.4 __stack_chk_guard D 0x4
|
||||
|
@ -295,6 +295,15 @@ out:
|
||||
asm ("movl %%gs:%P1,%0" : "=q" (_dtv) : "i" (offsetof (tcbhead_t, dtv)));\
|
||||
_dtv; })
|
||||
|
||||
|
||||
/* Set the stack guard field in TCB head. */
|
||||
#define THREAD_SET_STACK_GUARD(value) \
|
||||
THREAD_SETMEM (THREAD_SELF, stack_guard, value)
|
||||
#define THREAD_COPY_STACK_GUARD(descr) \
|
||||
((descr)->stack_guard \
|
||||
= THREAD_GETMEM (THREAD_SELF, stack_guard))
|
||||
|
||||
|
||||
# include <mach/machine/thread_status.h>
|
||||
|
||||
/* Set up TLS in the new thread of a fork child, copying from the original. */
|
||||
|
Loading…
Reference in New Issue
Block a user