Date: Tue, 17 Aug 2010 09:05:39 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/libexec/rtld-elf malloc.c rtld.c Message-ID: <201008170905.o7H95wZU097725@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-08-17 09:05:39 UTC FreeBSD src repository Modified files: libexec/rtld-elf malloc.c rtld.c Log: SVN rev 211413 on 2010-08-17 09:05:39Z by kib Use the newly provided aux vectors to get pagesize and osreldate information. Use local version of getpagesize(), rtld_getpagesize() in private allocator. Override the __getosreldate() previously fetched from libc_pic.a with local version that uses aux value if present. Note that __getosreldate() is used by rtld indirectly, by mmap(2) libc wrapper. To be able to utilize aux, split digest_dynamic() for use by init_rtld() into two parts, where the first one does not call malloc(), and the second part uses it. init_rtld() is able to initialize global variables before digest_dynamic2() calls. In particular, pagesize and osreldate are set up from the aux values. Now, rtld avoids (two) sysctl calls in startup. Tested by: marius (sparc64) MFC after: 1 month Revision Changes Path 1.12 +22 -1 src/libexec/rtld-elf/malloc.c 1.152 +62 -9 src/libexec/rtld-elf/rtld.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008170905.o7H95wZU097725>