File: local-stack_chk_guard.diff

package info (click to toggle)
glibc 2.36-9%2Bdeb12u13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 300,148 kB
  • sloc: ansic: 1,055,755; asm: 324,942; makefile: 15,198; python: 12,603; sh: 10,884; cpp: 5,685; awk: 1,883; perl: 518; yacc: 292; pascal: 182; sed: 39
file content (25 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Fix compatibility with binaries that reference __stack_chk_guard
TODO: find where these references are coming from.

Index: glibc-2.32/sysdeps/mach/hurd/dl-sysdep.c
===================================================================
--- glibc-2.32.orig/sysdeps/mach/hurd/dl-sysdep.c
+++ glibc-2.32/sysdeps/mach/hurd/dl-sysdep.c
@@ -68,6 +68,8 @@ void *_dl_random attribute_relro = NULL;
 
 struct hurd_startup_data *_dl_hurd_data;
 
+uintptr_t __stack_chk_guard attribute_relro;
+
 
 ElfW(Addr)
 _dl_sysdep_start (void **start_argptr,
Index: glibc-2.32/sysdeps/mach/hurd/i386/ld.abilist
===================================================================
--- glibc-2.32.orig/sysdeps/mach/hurd/i386/ld.abilist
+++ glibc-2.32/sysdeps/mach/hurd/i386/ld.abilist
@@ -17,3 +17,4 @@ GLIBC_2.2.6 _r_debug D 0x14
 GLIBC_2.3 ___tls_get_addr F
 GLIBC_2.3 __tls_get_addr F
 GLIBC_2.34 __rtld_version_placeholder F
+GLIBC_2.4 __stack_chk_guard D 0x4