Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ldd/ldd_elf Handle variable page size on sparc. See ...
details: https://anonhg.NetBSD.org/src/rev/17af095410a3
branches: trunk
changeset: 474034:17af095410a3
user: hannken <hannken%NetBSD.org@localhost>
date: Sat Jun 26 11:28:26 1999 +0000
description:
Handle variable page size on sparc. See libexec/ld.elf_so/rtld.h rev 1.13.
diffstat:
usr.bin/ldd/ldd_elf/Makefile | 5 ++++-
usr.bin/ldd/ldd_elf/ldd.c | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r a8e4f26ed8d1 -r 17af095410a3 usr.bin/ldd/ldd_elf/Makefile
--- a/usr.bin/ldd/ldd_elf/Makefile Sat Jun 26 09:09:51 1999 +0000
+++ b/usr.bin/ldd/ldd_elf/Makefile Sat Jun 26 11:28:26 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 1998/12/17 22:34:55 thorpej Exp $
+# $NetBSD: Makefile,v 1.8 1999/06/26 11:28:26 hannken Exp $
PROG= ldd
SRCS= ldd.c \
@@ -12,6 +12,9 @@
.else
CPPFLAGS+= -DELFSIZE=32
.endif
+.if (${MACHINE_ARCH} == "sparc")
+CPPFLAGS+= -DVARPSZ
+.endif
LDELFSO=${.CURDIR}/../../../libexec/ld.elf_so
CPPFLAGS+= -I${LDELFSO} -DLIBDIR=\"${LIBDIR}\" # -DDEBUG
diff -r a8e4f26ed8d1 -r 17af095410a3 usr.bin/ldd/ldd_elf/ldd.c
--- a/usr.bin/ldd/ldd_elf/ldd.c Sat Jun 26 09:09:51 1999 +0000
+++ b/usr.bin/ldd/ldd_elf/ldd.c Sat Jun 26 11:28:26 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ldd.c,v 1.4 1999/05/31 14:56:00 kleink Exp $ */
+/* $NetBSD: ldd.c,v 1.5 1999/06/26 11:28:26 hannken Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -55,6 +55,9 @@
Obj_Entry **_rtld_objtail = &_rtld_objlist;
/* Link field of last object in list */
Obj_Entry *_rtld_objmain; /* The main program shared object */
+#ifdef VARPSZ
+int _rtld_pagesz = 8192; /* XXX fake variable page size */
+#endif
Search_Path *_rtld_paths;
Home |
Main Index |
Thread Index |
Old Index