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 <[EMAIL PROTECTED]> * sysdeps/mach/hurd/dl-sysdep.h (DL_ARGV_NOT_RELRO): Define macro. Reported by Thomas Schwinge <[EMAIL PROTECTED]>. --- 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 _______________________________________________ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd