From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,8957a3add559bcce,start X-Google-Attributes: gid10d4db,public From: David Engel Subject: Ld.so 1.9.2 is released Date: 1997/04/25 Message-ID: X-Deja-AN: 237277102 X-Server-Date: 25 Apr 1997 11:04:53 GMT Followup-To: comp.os.linux.misc Old-Date: Wed, 23 Apr 1997 20:48:58 -0500 Organization: none X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUBM2CP6DiesvPHtqnBAQHlqQH+O2hPYLPyzU9G8XKUZZ4mJ98DwxfkEWgf ZoDWMncBBlLRQcp9rgkiQDy1LN0J7UrEXpu/M+KIaklJgqrBfPONbQ== =hG8v Newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- Ld.so version 1.9.2 is now available at the following locations: ftp://tsx-11.mit.edu/pub/linux/packages/GCC/ld.so-1.9.2.tar.gz ftp://i44ftp.info.uni-karlsruhe.de/pub/linux/ld.so/ld.so-1.9.2.tar.gz This package contains my ELF dynamic linkers (ld-linux.so.1), dynamic linker library (libdl.so.1) and utilities (ldconfig and ldd) for Linux. The dynamic linker is used to bootstrap programs and load shared libraries at startup. The dynamic linker library is used to dynamically load shared libraries after a program is running. Ldconfig is used to automatically update the symbolic links to shared libraries and build the cache file used by the dynamic linker. Ldd is used to list the shared libraries used by a program. ###################### IMPORTANT NOTICES ############################# A.OUT SUPPORT: As of ld.so-1.9.0, the old, a.out dynamic loader is no longer supported. The source code is still included, but I make no promises that it will even compile, let alone work. I will accept patches for it, but they will not be tested by me. If you want to have the a.out dynamic loader built, you must uncomment the AOUT_SUPPORT line in Config.mk. GLIBC (AKA LIBC6) SUPPORT: As of ld.so-1.9.0, the main focus of this package is to ease the transition to libc6. No significant, new features are expected to be added. If you need new features, switch to libc6. Except for libpthread.so, the sonames of the core libraries provided with libc6 have been chosen so they do not conflict with those provided by libc5 and ld.so. However, the current plan is not use new, nonconflicting sonames for other libraries such as ncurses and X11. This presents two problems. First, libraries using the same soname for both libc5 and libc6 can not be placed in the same directory. Second, the dynamic linkers need to make sure not to load a library for the wrong version of libc. The first problem is easy. Just move the old, libc5-based libraries to new directories (e.g. /lib/libc5-compat, /usr/lib/libc5-compat, etc.) and add those directories to /etc/ld.so.conf. Then install the new, libc6-based versions in the standard places. The second problem is more difficult. Ideally, the dynamic linkers would be changed to perform a complete dependency analysis on every library to be loaded to make sure the wrong versions aren't used. This approach doesn't seem worth the added complexity, especially since we now have symbol versioning for ELF libraries. Instead a simpler approach will be used, at least initially. Ldconfig has been modified to perform a (currently simple) dependency analysis on libraries and to store an indication in /etc/ld.so.cache of whether a library is for libc5, libc6 or an unknown libc. The dynamic linkers then only need to make a simple check at run-time to make sure they don't load the wrong version of a library. The dynamic linker for libc5 provided in this package, has already been modified to use the new information in /etc/ld.so.cache. As of glibc-2.0.1, the dynamic linker for libc6 needs the patch contained in glibc.patch. You should apply the patch and rebuild glibc before using the new ldconfig. As stated above, the dependency analysis currently done by ldconfig is rather simple. Basically, it looks for the sonames used by the various versions of libc, libm and libdl. For any approach using a dependency analysis such as this to work, it is very important that shared libraries be built with complete dependency information. This can be done by using the appropriate -l options when running 'gcc - -shared'. For example, when building libfoo.so which depends on libc and libbar, you should add -lbar and -lc gcc command line. ###################################################################### Changes in version 1.9.2: Removed /usr/local/lib from the default /etc/ld.so.conf for Debian (Bug#8181). Changed ldconfig to be 64-bit clean (H.J. Lu). Changes in version 1.9.1: Changed ldconfig to try to determine which libc a library is for even if it doesn't have an soname. Fixed a bug in ldconfig where an older library using the glibc naming convention would be used instead of a newer library. Changed to ld-linux.so and libdl.so to not require the libc5 headers in order to compile. Changed ldconfig and ldd to be compilable with either libc5 or libc6. Changes in version 1.9.0: Changed to not build the old, a.out dynamic loader by default. Changed instldso.sh to require the --force option to make sure users read the README file. Changed instldso.sh to not install the libdl.so development files unless the --devfiles option is used. Changed instldso.sh to not strip binaries and libraries if the --no-strip option is used. Changed the Debian packaging to put the development files which conflict with glibc in a new libdl1-dev package. Changed ldd to use the glibc dynamic linker, if it is available, when run on a shared library. Changed ld-linux.so to print the load addresses of libraries, ala glibc, when run by ldd. Changed ld-linux.so to allow the libraries listed in LD_PRELOAD to be separated by white space in addition to colons. Changed ld-linux.so to load the libraries listed in LD_PRELOAD for setu/gid programs as long as they can be loaded securely. Changed ldconfig to update the symlinks for the dynamic linkers. Changed ldconfig to try to determine if an ELF library is intended for libc5 or libc6 and save the infomation in the cache. The mechanism used is rather simplistic and may need to be enhanced. Changed ldconfig to print the type of ELF library when printing the cache. Changed ld-linux.so to only load ELF shared libraries for use with libc5 or an unknown libc. David - -- David Engel ODS Networks david@sw.ods.com 1001 E. Arapaho Road (972) 234-6400 Richardson, TX 75081 - -- This article has been digitally signed by the moderator, using PGP. http://www.iki.fi/liw/lars-public-key.asc has PGP key for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION. This group is archived at http://www.iki.fi/liw/linux/cola.html -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQCVAwUBM2CP5oQRll5MupLRAQGL2gP+PCPrV78Xl/d+bm0eOnBlLV/7f56Uo/5l 77YO+LyoxNachdYq11RijEpt3xR2cYA3Y4GQyLBF+7zEv/40VLt2ELxNc+9yVBMF x0UB4j0FZlQvnOHQBrKJGJ48d45qwmwVxrh+6uaE8Nc6xGRFN/IG9VfNSNxzNcNr 3iGRVGSg/4o= =bHdG -----END PGP SIGNATURE-----