summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-07-08 20:22:16 +0000
committerniklas <niklas@openbsd.org>1997-07-08 20:22:16 +0000
commit77849c40e1b55171a395be938e4c06500d4ad1cf (patch)
treea95a46c1bf4b2e2a48fd2d832fde326be6c8c367
parentremove register, move strx decl, and change it to long as it is meant to take (diff)
downloadwireguard-openbsd-77849c40e1b55171a395be938e4c06500d4ad1cf.tar.xz
wireguard-openbsd-77849c40e1b55171a395be938e4c06500d4ad1cf.zip
The a.out nlist strtab offset needs the strtab size field accounted for
-rw-r--r--sys/arch/alpha/stand/loadfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/stand/loadfile.c b/sys/arch/alpha/stand/loadfile.c
index d1d2f925b39..1a60d64d707 100644
--- a/sys/arch/alpha/stand/loadfile.c
+++ b/sys/arch/alpha/stand/loadfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: loadfile.c,v 1.5 1997/07/08 18:13:14 niklas Exp $ */
+/* $OpenBSD: loadfile.c,v 1.6 1997/07/08 20:22:16 niklas Exp $ */
/* $NetBSD: loadfile.c,v 1.3 1997/04/06 08:40:59 cgd Exp $ */
/*
@@ -185,7 +185,7 @@ coff_exec(fd, coff, entryp)
printf("read data: %s\n", strerror(errno));
return (1);
}
- symtab->n_un.n_strx = sym.es_strindex;
+ symtab->n_un.n_strx = sym.es_strindex + sizeof(int);
symtab->n_value = sym.es_value;
symtab->n_type = N_EXT;
if (sym.es_class == 1) /* scText */