mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
13 lines
265 B
C
13 lines
265 B
C
#include <stdint.h>
|
|
|
|
static inline uintptr_t __attribute__ ((always_inline))
|
|
_dl_setup_stack_chk_guard (void)
|
|
{
|
|
uintptr_t ret = 0;
|
|
unsigned char *p = (unsigned char *) &ret;
|
|
p[sizeof (ret) - 1] = 255;
|
|
p[sizeof (ret) - 2] = '\n';
|
|
p[0] = 0;
|
|
return ret;
|
|
}
|