diff options
author | 2003-07-21 03:55:35 +0000 | |
---|---|---|
committer | 2003-07-21 03:55:35 +0000 | |
commit | 1aa7d557a8b2680d015224eb6fdcd9659ede09d0 (patch) | |
tree | bfbba5035f4aba39b7d6bd1df3155ada51a3f2f3 | |
parent | Fix typo: unsigned -> unsigned char; from Thorsten Glaser (diff) | |
download | wireguard-openbsd-1aa7d557a8b2680d015224eb6fdcd9659ede09d0.tar.xz wireguard-openbsd-1aa7d557a8b2680d015224eb6fdcd9659ede09d0.zip |
ld needs -Z flag since W^X. from marius erikson in pr3360. ok drahn@
-rw-r--r-- | sbin/modload/elf.c | 6 |
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 */ |