hurd: let _dl_argv and __libc_stack_end be relro
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 15 Nov 2020 13:47:13 +0000 (13:47 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 15 Nov 2020 13:48:15 +0000 (14:48 +0100)
libpthread does not switch stacks.

sysdeps/mach/hurd/dl-sysdep.h

index 1fe3964..ae555de 100644 (file)
    (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