Module Name: src Committed By: jym Date: Thu Sep 16 00:26:50 UTC 2010
Modified Files: src/sys/lib/libsa: loadfile_elf32.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/sys/lib/libsa/loadfile_elf32.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libsa/loadfile_elf32.c diff -u src/sys/lib/libsa/loadfile_elf32.c:1.26 src/sys/lib/libsa/loadfile_elf32.c:1.27 --- src/sys/lib/libsa/loadfile_elf32.c:1.26 Thu Sep 2 17:10:14 2010 +++ src/sys/lib/libsa/loadfile_elf32.c Thu Sep 16 00:26:49 2010 @@ -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;