Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Make sure the elf_args strucure is appropriate for t...



details:   https://anonhg.NetBSD.org/src/rev/f1c1296aabed
branches:  trunk
changeset: 480013:f1c1296aabed
user:      eeh <eeh%NetBSD.org@localhost>
date:      Thu Dec 30 15:48:19 1999 +0000

description:
Make sure the elf_args strucure is appropriate for the size of the ELF binary.

diffstat:

 sys/sys/exec_elf.h |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 48a8933064f9 -r f1c1296aabed sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Thu Dec 30 15:46:16 1999 +0000
+++ b/sys/sys/exec_elf.h        Thu Dec 30 15:48:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.h,v 1.32 1999/11/10 17:31:56 thorpej Exp $    */
+/*     $NetBSD: exec_elf.h,v 1.33 1999/12/30 15:48:19 eeh Exp $        */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -589,13 +589,15 @@
 #define ELF_NO_ADDR    ELF32_NO_ADDR
 #endif
 
+#if defined(ELFSIZE)
 struct elf_args {
-        u_long  arg_entry;      /* program entry point */
-        u_long  arg_interp;     /* Interpreter load address */
-        u_long  arg_phaddr;     /* program header address */
-        u_long  arg_phentsize;  /* Size of program header */
-        u_long  arg_phnum;      /* Number of program headers */
+        Elf_Addr  arg_entry;      /* program entry point */
+        Elf_Addr  arg_interp;     /* Interpreter load address */
+        Elf_Addr  arg_phaddr;     /* program header address */
+        Elf_Addr  arg_phentsize;  /* Size of program header */
+        Elf_Addr  arg_phnum;      /* Number of program headers */
 };
+#endif
 
 #ifndef _LKM
 #include "opt_execfmt.h"



Home | Main Index | Thread Index | Old Index