Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Use "#ifdef __mips__" instead of "#ifdef mips"; sha...



details:   https://anonhg.NetBSD.org/src/rev/d190dca6cdae
branches:  trunk
changeset: 532246:d190dca6cdae
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Jun 03 13:07:00 2002 +0000

description:
Use "#ifdef __mips__" instead of "#ifdef mips"; shared libraries work
for kernels compiled with gcc 3.x.

diffstat:

 sys/kern/exec_elf32.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b8711a53d3cc -r d190dca6cdae sys/kern/exec_elf32.c
--- a/sys/kern/exec_elf32.c     Mon Jun 03 12:01:43 2002 +0000
+++ b/sys/kern/exec_elf32.c     Mon Jun 03 13:07:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf32.c,v 1.70 2002/01/28 22:15:55 thorpej Exp $  */
+/*     $NetBSD: exec_elf32.c,v 1.71 2002/06/03 13:07:00 simonb Exp $   */
 
 /*-
  * Copyright (c) 1994, 2000 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.70 2002/01/28 22:15:55 thorpej Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf32.c,v 1.71 2002/06/03 13:07:00 simonb Exp $");
 
 /* If not included by exec_elf64.c, ELFSIZE won't be defined. */
 #ifndef ELFSIZE
@@ -383,7 +383,7 @@
                            eh.e_entry < (ph[i].p_vaddr + size)) {
                                /* XXX */
                                *entry = addr + eh.e_entry;
-#ifdef mips
+#ifdef __mips__
                                *entry -= ph[i].p_vaddr;
 #endif
                                ap->arg_interp = addr;



Home | Main Index | Thread Index | Old Index