Module Name: src Committed By: matt Date: Thu May 2 21:11:18 UTC 2013
Modified Files: src/libexec/ld.elf_so: rtld.c Log Message: Print out &_DYNAMIC too. To generate a diff of this commit: cvs rdiff -u -r1.161 -r1.162 src/libexec/ld.elf_so/rtld.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/libexec/ld.elf_so/rtld.c diff -u src/libexec/ld.elf_so/rtld.c:1.161 src/libexec/ld.elf_so/rtld.c:1.162 --- src/libexec/ld.elf_so/rtld.c:1.161 Sun Dec 16 23:00:46 2012 +++ src/libexec/ld.elf_so/rtld.c Thu May 2 21:11:18 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: rtld.c,v 1.161 2012/12/16 23:00:46 dsl Exp $ */ +/* $NetBSD: rtld.c,v 1.162 2013/05/02 21:11:18 matt Exp $ */ /* * Copyright 1996 John D. Polstra. @@ -40,7 +40,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: rtld.c,v 1.161 2012/12/16 23:00:46 dsl Exp $"); +__RCSID("$NetBSD: rtld.c,v 1.162 2013/05/02 21:11:18 matt Exp $"); #endif /* not lint */ #include <sys/param.h> @@ -443,12 +443,14 @@ _rtld(Elf_Addr *sp, Elf_Addr relocbase) debug = 1; dbg(("sp = %p, argc = %ld, argv = %p <%s> relocbase %p", sp, (long)sp[2], &sp[3], (char *) sp[3], (void *)relocbase)); -#if 0 +#if 1 dbg(("got is at %p, dynamic is at %p", _GLOBAL_OFFSET_TABLE_, &_DYNAMIC)); #endif +#if 0 dbg(("_ctype_ is %p", _ctype_)); #endif +#endif sp += 2; /* skip over return argument space */ argv = (const char **) &sp[1];