bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The recent glibc breakage (dynamically linking with libthreads)


From: Alfred M. Szmidt
Subject: Re: The recent glibc breakage (dynamically linking with libthreads)
Date: Thu, 22 Sep 2005 18:29:50 +0200

The patch that I sent is quite wrong.  The proper place to define
DL_ARGV_NOT_RELRO is not in sysdeps/mach/hurd/i386/dl-machine.h, but
in sysdeps/mach/hurd/dl-sysdeps.h (it needs to be included by
ldosdefs.h).  Now _dl_argv ends up in .bss, and not in .rel.ro; as it
should be.

2005-09-22  Alfred M. Szmidt  <ams@gnu.org>
 
        * sysdeps/mach/hurd/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define
        macro.  Reported by Thomas Schwinge <tschwinge@gnu.org>.

--- sysdeps/mach/hurd/dl-sysdep.h
+++ sysdeps/mach/hurd/dl-sysdep.h
@@ -23,3 +23,6 @@
    (open, mmap, etc).  */
 
 #define RTLD_PRIVATE_ERRNO 0
+
+/* _dl_argv can't be attribute_relro, since it gets frobed in init().  */
+#define DL_ARGV_NOT_RELRO 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]