about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-15 13:47:13 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-15 14:48:15 +0100
commitaac0f62c47beee5b546bacc330acc2dd21cda0dc (patch)
treeeb0bfd18deee401f7c14a11226f4b88e09059086
parent9446e02b0d2e94da4ebe9df6e2c5d23adc0f1d7d (diff)
downloadglibc-aac0f62c47beee5b546bacc330acc2dd21cda0dc.tar.gz
glibc-aac0f62c47beee5b546bacc330acc2dd21cda0dc.tar.xz
glibc-aac0f62c47beee5b546bacc330acc2dd21cda0dc.zip
hurd: let _dl_argv and __libc_stack_end be relro
libpthread does not switch stacks.
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.h b/sysdeps/mach/hurd/dl-sysdep.h
index 1fe3964103..ae555de3b7 100644
--- a/sysdeps/mach/hurd/dl-sysdep.h
+++ b/sysdeps/mach/hurd/dl-sysdep.h
@@ -22,10 +22,3 @@
    (open, mmap, etc).  */
 
 #define RTLD_PRIVATE_ERRNO 0
-
-#ifdef SHARED
-/* _dl_argv and __libc_stack_end cannot be attribute_relro, because the stack-switching
-   libc initializer for using cthreads might write into it.  */
-# define DL_ARGV_NOT_RELRO 1
-# define LIBC_STACK_END_NOT_RELRO 1
-#endif