Subject: lib/32946: Unifying managment ld.so via environment variables and bonus debug levels
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <vlevchenko@yandex.ru>
List: netbsd-bugs
Date: 02/28/2006 04:00:01
>Number:         32946
>Category:       lib
>Synopsis:       Unifying managment ld.so via environment variables and bonus debug levels
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 28 04:00:00 +0000 2006
>Originator:     Vassily Levchenko
>Release:        current
>Organization:
>Environment:
NetBSD archon 3.99.15 NetBSD 3.99.15 (GENERIC) #4: Wed Jan 25 06:48:19 MSK 2006  vvl@archon:/home/vvl/netbsd060121/src-kld/src/sys/arch/amd64/compile/GENERIC amd64 x86_64 AMD Athlon(tm) 64 Processor 3500+ NetBSD

>Description:
Here are introduced the unified environment management of ld.so via environment variables. New method rtld_setup_env checks all environment variables that starts with LD_ and puts values or fires a flags in global structure. The result later used from this structure. 
Also debug levels are introduced. Format is  LD_DEBUG=token1,token2 possible values are: 
help – prints possible values and exit,  
basic –some basic stuff printed aka setup of ld.so or changes in internal states basic operations, 
detail - to get more detailed information (in conjunction with other tokens) 
files|init|libs|symbols|bindings|reloc – display files | init/fini | libraries | symbols | bindings | relocations processing.

>How-To-Repeat:

>Fix:
http://vlevchenko.narod.ru/ld.elf_so/ld.so.tar.bz2