diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-07-08 20:22:17 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-07-08 20:22:17 +0000 |
commit | 9becd4b1d520f960c8cae483abb795ce3f25669b (patch) | |
tree | 49eece9264fca7647b0231db4b27af09b29b4167 /sys/arch/alpha/stand/loadfile.c | |
parent | 9e8f72e1e147589b0b0519618aa8920cfe0c208d (diff) |
The a.out nlist strtab offset needs the strtab size field accounted for
Diffstat (limited to 'sys/arch/alpha/stand/loadfile.c')
-rw-r--r-- | sys/arch/alpha/stand/loadfile.c | 4 |
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 */ |