Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Sep 2013 13:48:54 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r255385 - in head/etc: . etc.amd64
Message-ID:  <86zjrnedp5.fsf@nine.des.no>
In-Reply-To: <20130908110410.GZ41229@kib.kiev.ua> (Konstantin Belousov's message of "Sun, 8 Sep 2013 14:04:10 %2B0300")
References:  <201309080946.r889kNSX050568@svn.freebsd.org> <20130908110410.GZ41229@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Konstantin Belousov <kostikbel@gmail.com> writes:
> There is no /lib32 on 64bit platforms.

It doesn't exist, but it's supported:

#ifdef COMPAT_32BIT
#undef STANDARD_LIBRARY_PATH
#undef _PATH_ELF_HINTS
#define _PATH_ELF_HINTS         "/var/run/ld-elf32.so.hints"
/* For running 32 bit binaries  */
#define STANDARD_LIBRARY_PATH   "/lib32:/usr/lib32"
#define LD_ "LD_32_"
#endif

> I do not understand why these pathes are neeeded, since compat32 rtld
> has proper default path built in

Did you read the log message?  I am perfectly aware that the two lines
you're complaining about are a no-op; they're included mostly for
documentation purposes.  However, if the code that uses them was made
unconditional (it is currently #ifdef COMPAT_32BIT), these lines would
eliminate the need to hardcode a special STANDARD_LIBRARY_PATH in
rtld-elf.

> but if anything, /lib should be translated to /usr/lib32.

Irrelevant, because while rtld-elf won't find anything there it will
still find what it's looking for in /usr/lib32.

These mappings are *not* applied to individual libraries; they are
applied to STANDARD_LIBRARY_PATH, LD_LIBRARY_PATH and the program's or
library's run-time search path (-rpath).

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86zjrnedp5.fsf>