Patch-ID# 102049-05 Keywords: linker memory security SHF_EXCLUDE Synopsis: SunOS 5.4: linker fixes Date: Oct/23/96 Solaris Release: 2.4 SunOS Release: 5.4 Unbundled Product: Unbundled Release: Xref: This patch available for x86 as patch 102778 Topic: SunOS 5.4: linker fixes BugId's fixed with this patch: 1056449 1177008 1214740 1241843 1244333 1247793 1264828 Changes incorporated in this version: 1264828 Relevant Architectures: sparc Patches accumulated and obsoleted by this patch: Patches which conflict with this patch: Patches required with this patch: Obsoleted by: Files included with this patch: usr/include/libelf.h usr/include/link.h usr/ccs/bin/ar usr/ccs/bin/gprof usr/ccs/bin/ld usr/ccs/bin/ranlib usr/bin/ldd usr/lib/lddstub usr/lib/lidld.so.2 usr/lib/liblddbg.so.3 usr/lib/ld.so.1 usr/lib/libdl.so.1 etc/lib/ld.so.1 etc/lib/libdl.so.1 usr/lib/ld.so usr/lib/libelf.so.1 usr/lib/libelf.a usr/include/sys/elf.h usr/include/sys/elf_386.h usr/include/sys/elf_SPARC.h usr/include/sys/elf_notes.h usr/include/sys/auxv.h usr/include/sys/systeminfo.h usr/ccs/bin/ar usr/lib/libldstab.so.1 usr/bin/pvs Problem Description: 1264828 Linker patch 102049-03 breaks binary compatibility for 2.4 (from 102049-04) 1244333 The SHF_EXCLUDE flag defined in ppc ABI should be implemented and for all ISA's (from 102049-03) 1247793 dlsym() can't find symbol 1056449 ld should handle an empty archive without aborting with an error 1241843 ld.so security problem (from 102049-02) 1214740 nss_*.so files should only be loaded from /usr/lib (from 102049-01) 1177008 linker assumes zero'ed memory when generating some output sections. Link-editor assumes zero filled `holes' within generated image. Problem arises on NFS systems that do not support ftruncate() growing a file (Cray). Resulting image is malloc()'ed, and sections like the .hash may contain non-zero'ed entries where zero entries are assumed. Patch Installation Instructions: -------------------------------- Refer to the Install.info file within the patch for instructions on using the generic 'installpatch' and 'backoutpatch' scripts provided with each patch. Any other special or non-generic installation instructions should be described below. Special Install Instructions: ----------------------------- None.