Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Use standard ELF types for ELF code, instead o...
details: https://anonhg.NetBSD.org/src/rev/343e6e870ec2
branches: trunk
changeset: 757709:343e6e870ec2
user: jym <jym%NetBSD.org@localhost>
date: Thu Sep 16 00:26:49 2010 +0000
description:
Use standard ELF types for ELF code, instead of paddr_t. paddr_t should
only be used for low level code, like virtual memory internals.
diffstat:
sys/lib/libsa/loadfile_elf32.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r e988a9296a7c -r 343e6e870ec2 sys/lib/libsa/loadfile_elf32.c
--- a/sys/lib/libsa/loadfile_elf32.c Wed Sep 15 21:37:35 2010 +0000
+++ b/sys/lib/libsa/loadfile_elf32.c Thu Sep 16 00:26:49 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_elf32.c,v 1.26 2010/09/02 17:10:14 christos Exp $ */
+/* $NetBSD: loadfile_elf32.c,v 1.27 2010/09/16 00:26:49 jym Exp $ */
/*-
* Copyright (c) 1997, 2008 The NetBSD Foundation, Inc.
@@ -263,8 +263,9 @@
int i, j;
ssize_t sz;
int first;
- paddr_t minp = ~0, maxp = 0, pos = 0;
- paddr_t offset = marks[MARK_START], shpp, elfp = 0;
+ Elf_Addr shpp;
+ Elf_Addr minp = ~0, maxp = 0, pos = 0, elfp = 0;
+ u_long offset = marks[MARK_START];
ssize_t nr;
struct __packed {
Elf_Nhdr nh;
Home |
Main Index |
Thread Index |
Old Index