Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Move ELFNAME macros out of #ifdef _KERNEL.



details:   https://anonhg.NetBSD.org/src/rev/c856885a8502
branches:  trunk
changeset: 477591:c856885a8502
user:      erh <erh%NetBSD.org@localhost>
date:      Sat Oct 23 08:45:49 1999 +0000

description:
Move ELFNAME macros out of #ifdef _KERNEL.

diffstat:

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

diffs (38 lines):

diff -r cbb183d4eb07 -r c856885a8502 sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Sat Oct 23 04:20:14 1999 +0000
+++ b/sys/sys/exec_elf.h        Sat Oct 23 08:45:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.h,v 1.25 1999/09/13 10:31:44 itojun Exp $     */
+/*     $NetBSD: exec_elf.h,v 1.26 1999/10/23 08:45:49 erh Exp $        */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -476,6 +476,13 @@
 #define ELF_NOTE_GNU_OSLINUX           (u_int32_t)0x01000000
 #define ELF_NOTE_GNU_OSMACH            (u_int32_t)0x00000000
 
+#if defined(ELFSIZE)
+#define CONCAT(x,y)    __CONCAT(x,y)
+#define ELFNAME(x)     CONCAT(elf,CONCAT(ELFSIZE,CONCAT(_,x)))
+#define ELFNAME2(x,y)  CONCAT(x,CONCAT(_elf,CONCAT(ELFSIZE,CONCAT(_,y))))
+#define ELFNAMEEND(x)  CONCAT(x,CONCAT(_elf,ELFSIZE))
+#define ELFDEFNNAME(x) CONCAT(ELF,CONCAT(ELFSIZE,CONCAT(_,x)))
+#endif
 
 #include <machine/elf_machdep.h>
 
@@ -531,14 +538,6 @@
 #define ELF_NO_ADDR    ELF32_NO_ADDR
 #endif
 
-#if defined(ELFSIZE)
-#define CONCAT(x,y)    __CONCAT(x,y)
-#define ELFNAME(x)     CONCAT(elf,CONCAT(ELFSIZE,CONCAT(_,x)))
-#define ELFNAME2(x,y)  CONCAT(x,CONCAT(_elf,CONCAT(ELFSIZE,CONCAT(_,y))))
-#define ELFNAMEEND(x)  CONCAT(x,CONCAT(_elf,ELFSIZE))
-#define ELFDEFNNAME(x) CONCAT(ELF,CONCAT(ELFSIZE,CONCAT(_,x)))
-#endif
-
 struct elf_args {
         u_long  arg_entry;      /* program entry point */
         u_long  arg_interp;     /* Interpreter load address */



Home | Main Index | Thread Index | Old Index