History log of /netbsd-current/libexec/ld.elf_so/paths.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.42 24-Jan-2016 christos

we don't need <sys/mbuf.h>


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base tls-maxphys-base
# 1.41 06-May-2013 skrll

branches: 1.41.6;
Trailing whitespace


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.40 19-May-2009 christos

branches: 1.40.6; 1.40.12;
warns=4


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 wrstuden-revivesa-base
# 1.39 05-Jun-2008 ad

Fix error in previous. From nakayama@.


# 1.38 03-Jun-2008 ad

Try read() on ld.so.conf. If the file is small, it avoids stat+mmap+munmap.


Revision tags: yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.37 05-Oct-2007 ad

branches: 1.37.6; 1.37.8;
- Don't use the names malloc/free/etc, since we can end up pulling in libc's
malloc which is not what we want.
- Remove ancient memory compaction hack. Realloc on free memory is now an
error again (from joerg@).

Ok christos@.


# 1.36 27-Sep-2007 christos

provide xrealloc, and don't cast and use malloc and realloc directly.


# 1.35 20-Sep-2007 christos

Use AT_SUN_EXECPATH instead of argv[0] for the executable name. This needs
kernel support, which is not there yet, thus $ORIGIN is broken at this time.
This is ok, nothing uses it yet.


Revision tags: matt-mips64-base
# 1.34 18-May-2007 christos

branches: 1.34.4;
Support Solaris-like $ORIGIN etc. expansions in paths.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base abandoned-netbsd-4-base netbsd-4-base
# 1.33 01-Jun-2005 lukem

Add some sanity checking inspired by gcc -Wuninitialized.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.32 22-Oct-2004 skrll

Add __RCSIDs.

OK'd by mycroft.


# 1.31 05-Jul-2004 cube

Make ld.elf_so use the new sysctl API. That allows the user to give any
sysctl variable name in /etc/ld.so.conf. It also makes the ld.elf_so
binary slightly smaller (at least on i386), and has no impact on
performance.

Fixes PR 26100.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.30 16-Mar-2004 atatat

The <sys/sysctl.h> header already provides a perfectly good struct for
this purpose, so...uh...use it.


# 1.29 15-Feb-2004 enami

Don't assume past the mmaped region is accessible.


# 1.28 15-Feb-2004 enami

Fix warning message: the failed operation is not fstat but mmap.


# 1.27 24-Jul-2003 skrll

ANSIfy and de-__P().


# 1.26 05-Jun-2003 simonb

KNF- blank lines before code at start of functions.


Revision tags: fvdl_fs64_base
# 1.25 06-Oct-2002 junyoung

Embedded whitespace in dirname is supported again.


# 1.24 05-Oct-2002 junyoung

A line whose length is 0 always begins with '#'.


# 1.23 05-Oct-2002 junyoung

Minor cleanup.


# 1.22 05-Oct-2002 junyoung

Better fix of parser bug.


# 1.21 05-Oct-2002 junyoung

Don't call _rtld_process_mapping() with null string.


# 1.20 05-Oct-2002 mycroft

Simplify the hint file parser a bit.


# 1.19 05-Oct-2002 mycroft

Minor cleanup.


# 1.18 28-Sep-2002 junyoung

Call NEW() rather than CNEW().


# 1.17 12-Sep-2002 mycroft

Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit.


# 1.16 12-Sep-2002 mycroft

Add some consts.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.15 24-May-2001 christos

branches: 1.15.2;
Don't include <uvm/uvm_param.h>. It does not appear to be needed by anything.
<uvm/uvm_param.h> does not exist under 1.5. Tested on i386 and sparc.
Anyway, if it is indeed needed by other platforms then we'll put it back,
but I don't see how since it does not define any types.


# 1.14 10-Nov-2000 simonb

Fix linked-list botch with sysctl-based library selection that meant
only the last line was used. Allow more than one white space character
between fields.

Reviewed by Christos Zoulas.


# 1.13 09-Nov-2000 simonb

Only need to include <sys/sysctl.h> once.


# 1.12 26-Jun-2000 mrg

we now need <uvm/uvm_param.h>


Revision tags: netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.11 09-May-2000 bjh21

branches: 1.11.4;
Initial commit of arm26 port


# 1.10 15-Jan-2000 christos

use xwarnx instead of warnx


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.9 20-Dec-1999 christos

PR/9031: Scott Ellis: Ignore empty sysctl directive lines.


# 1.8 15-Dec-1999 christos

Do what the people want. Support full sysctl names.


# 1.7 13-Dec-1999 christos

Enable parsing and mapping of hardware dependent libraries in ld.so.conf
To be documented in the man page.


Revision tags: comdex-fall-1999-base
# 1.6 20-Aug-1999 christos

branches: 1.6.4;
fix typo


# 1.5 19-Aug-1999 christos

enable /etc/ld.so.conf processing
[reviewed by thorpej]


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.4 01-Mar-1999 christos

KNF


# 1.3 24-Feb-1999 christos

Cleanup global variable access so rtld can be self relocating. Also KNF
reloc.c and move md sparc parts to arch/sparc/mdreloc.c
Now we don't need to load at address 0 on the i386 and the mips should be
trivial to fix.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.2 08-Oct-1997 mrg

WARNS?=1


# 1.1 16-Dec-1996 cgd

First cut at an ELF shared loader. Originally from John Polstra's FreeBSD elf
kit, then hacked on by Matt Thomas <matt@3am-software.com>, then by me (to
make it work with new versions of the toolchain, etc.). This runs, but it's
in serious need of cleaning and/or a fair bit of reworking. See the README
file for more information, and a list of things to do.