Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 pull over lost fix from nebsd32_exec.c:
details: https://anonhg.NetBSD.org/src/rev/b51b0038eab5
branches: trunk
changeset: 499932:b51b0038eab5
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Dec 02 04:08:35 2000 +0000
description:
pull over lost fix from nebsd32_exec.c:
>revision 1.25
>date: 2000/12/01 08:59:02; author: mrg; state: Exp; lines: +2 -2
>in netbsd32_elf32_probe(), 'pos' is really a pointer to an Elf_Addr, not a
>vaddr_t. cast the pointer before dereferencing it to avoid the alignment
>fault that broke compat_netbsd32, cuz pos is defined like:
> Elf_Addr phdr = 0, pos = 0;
>in exec_elf32.c.
diffstat:
sys/compat/netbsd32/netbsd32_exec_elf32.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1efbb2128af6 -r b51b0038eab5 sys/compat/netbsd32/netbsd32_exec_elf32.c
--- a/sys/compat/netbsd32/netbsd32_exec_elf32.c Sat Dec 02 03:57:26 2000 +0000
+++ b/sys/compat/netbsd32/netbsd32_exec_elf32.c Sat Dec 02 04:08:35 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_exec_elf32.c,v 1.1 2000/12/01 21:51:09 jdolecek Exp $ */
+/* $NetBSD: netbsd32_exec_elf32.c,v 1.2 2000/12/02 04:08:35 mrg Exp $ */
/* from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
/*
@@ -82,7 +82,7 @@
free((void *)bp, M_TEMP);
}
epp->ep_flags |= EXEC_32;
- *pos = ELFDEFNNAME(NO_ADDR);
+ *(Elf_Addr *)pos = ELFDEFNNAME(NO_ADDR);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index