summary refs log tree commit diff
path: root/sysdeps/generic/dl-osinfo.h
blob: 60b84a900d4a9bb0062aac2d2869a0731e6985cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#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;
}