Patch-ID# 101743-02 Keywords: call dlsym dlopen object wrong libXp library shared ld.so ldd Synopsis: SunOS 4.1.3_U1: Compiler linker Jumbo Patch Date: Nov/16/95 Solaris Release: 1.1.1A SunOS Release: 4.1.3_U1A Unbundled Product: Unbundled Release: BugId's fixed with this patch: 1076655 1223450 1158146 Changes incorporated in this version: 1076655 1223450 Relevant Architecture: sparc NOTE: sun4(all) Patches which may conflict with this patch: Other patches this accumulates and obsoletes: Obsoleted by: Files included with this patch: ld.so ldconfig Problem Description: 1076655 ld.so incorrectly performing RELOC_HI22 instructions if offset > 4 Meg. 1223450 dlopen() fails to call dlsym() if additional unrelated object file is added. 1158146 ldd and ld.so are including the wrong libraries if the libraries are similarly named and in the same directory. Patch Installation Instructions: 1. Install ldconfig: mv /usr/etc/ldconfig /usr/etc/ldconfig.FCS cp -p ldconfig /usr/etc/ldconfig 2. Copy patched ld.so: cp -p ld.so /usr/lib/ld.so.new 3. Shutdown system to single user mode. (if not possible wait until system is quiet) 4. Save the original ld.so and replace with new one: cd /usr/lib ln ld.so ld.so.FCS mv -f ld.so.new ld.so 5. Immediately test with: date /usr/etc/ldconfig (if ldconfig in /etc/rc.local has arguments, use them) date if date dumps core, back out with the following commands: cd /usr/lib mv ld.so ld.so.new; mv ld.so.FCS ld.so cd /usr/etc mv ldconfig ldconfig.new; mv ldconfig.FCS ldconfig mv /etc/ld.so.cache /etc/ld.so.cache.bad 6. Do not remove ld.so.FCS until after the next reboot.