diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-07-31 03:10:51 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-07-31 03:10:51 +0000 |
commit | 68cbbe24c1bb673003dce3dc0b50cd305fd64467 (patch) | |
tree | 8f7ed11b06b133df256a2c875f760ed05aedca47 | |
parent | 8324535a7671499e2adefbd379914e02e2ec1c8b (diff) |
Define _DYNAMIC correctly for all architectures.
The alleged alpha problems didn't show up.
-rw-r--r-- | sys/sys/exec_elf.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h index 29f23fbaf1e..672182363b3 100644 --- a/sys/sys/exec_elf.h +++ b/sys/sys/exec_elf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.h,v 1.33 2002/03/14 01:27:14 millert Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.34 2002/07/31 03:10:50 art Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen. All rights reserved. * @@ -399,8 +399,6 @@ typedef struct { } d_un; } Elf32_Dyn; -extern Elf32_Dyn _DYNAMIC[]; /* XXX not 64-bit clean */ - typedef struct { Elf64_Xword d_tag; /* controls meaning of d_val */ union { @@ -571,6 +569,10 @@ struct elf_args { #define AuxInfo Aux64Info #endif +#ifndef _KERNEL +extern Elf_Dyn _DYNAMIC[]; +#endif + #ifdef _KERNEL #ifdef _KERN_DO_ELF64 int exec_elf64_makecmds(struct proc *, struct exec_package *); |