aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-10-23 01:00:04 +0000
committerRoland McGrath <roland@gnu.org>2005-10-23 01:00:04 +0000
commit389188b1e25e1edeeadb3150fb471b03afea0174 (patch)
treee171c6557ccfb08929398339df41d0f8bb40aa58
parent220ff711067cb55c4dd7f3f2a53e9217f6c5e48f (diff)
downloadglibc-389188b1e25e1edeeadb3150fb471b03afea0174.zip
glibc-389188b1e25e1edeeadb3150fb471b03afea0174.tar.gz
glibc-389188b1e25e1edeeadb3150fb471b03afea0174.tar.bz2
2005-10-16 Roland McGrath <roland@frob.com>
[BZ #1253] * sysdeps/mach/hurd/dl-sysdep.h [SHARED] (DL_ARGV_NOT_RELRO): New macro.
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.h b/sysdeps/mach/hurd/dl-sysdep.h
index 2dc9b0a..4b21b77 100644
--- a/sysdeps/mach/hurd/dl-sysdep.h
+++ b/sysdeps/mach/hurd/dl-sysdep.h
@@ -1,5 +1,5 @@
/* System-specific settings for dynamic linker code. Hurd version.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -23,3 +23,9 @@
(open, mmap, etc). */
#define RTLD_PRIVATE_ERRNO 0
+
+#ifdef SHARED
+/* _dl_argv cannot be attribute_relro, because the stack-switching
+ libc initializer for using cthreads might write into it. */
+# define DL_ARGV_NOT_RELRO 1
+#endif