summaryrefslogtreecommitdiff
path: root/sbin/modload
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-07-21 03:55:36 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-07-21 03:55:36 +0000
commitdc7db284aeb370c176e1a99b5b54ca37771cb68d (patch)
tree83da1687dae04e813f5ff92f367daa72f45fb9c6 /sbin/modload
parent591e3c064badc7a5e7e0aa133d0c38eb7c25543a (diff)
ld needs -Z flag since W^X. from marius erikson in pr3360. ok drahn@
Diffstat (limited to 'sbin/modload')
-rw-r--r--sbin/modload/elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/modload/elf.c b/sbin/modload/elf.c
index a7aa34c4da2..648a76695f1 100644
--- a/sbin/modload/elf.c
+++ b/sbin/modload/elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elf.c,v 1.4 2002/12/11 18:28:22 deraadt Exp $ */
+/* $OpenBSD: elf.c,v 1.5 2003/07/21 03:55:35 tedu Exp $ */
/* $NetBSD: elf.c,v 1.8 2002/01/03 21:45:58 jdolecek Exp $ */
/*
@@ -316,8 +316,8 @@ elf_mod_sizes(int fd, size_t *modsize, int *strtablen,
* -Tdata address to link data segment to in hex
* <target> object file */
-#define LINKCMD "ld -R %s -e %s -o %s -Ttext %p %s"
-#define LINKCMD2 "ld -R %s -e %s -o %s -Ttext %p -Tdata %p %s"
+#define LINKCMD "ld -Z -R %s -e %s -o %s -Ttext %p %s"
+#define LINKCMD2 "ld -Z -R %s -e %s -o %s -Ttext %p -Tdata %p %s"
/* make a link command; XXX if data_offset above is non-zero, force
data address to be at start of text + offset */