From owner-cvs-all Sun Feb 8 22:06:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA11318 for cvs-all-outgoing; Sun, 8 Feb 1998 22:06:46 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA11309; Sun, 8 Feb 1998 22:06:45 -0800 (PST) (envelope-from jdp@FreeBSD.org) From: John Polstra Received: (from jdp@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA17763; Sun, 8 Feb 1998 22:05:33 -0800 (PST) Date: Sun, 8 Feb 1998 22:05:33 -0800 (PST) Message-Id: <199802090605.WAA17763@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/csu/i386 Makefile crt0.c dladdr.3 dlopen.3 src/lib/libc/gen dladdr.3 dlfcn.c dlopen.3 Makefile.inc Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk jdp 1998/02/08 22:05:33 PST Modified files: lib/csu/i386 Makefile crt0.c lib/libc/gen Makefile.inc Added files: lib/libc/gen dladdr.3 dlfcn.c dlopen.3 Removed files: lib/csu/i386 dladdr.3 dlopen.3 Log: Move the trampolines for dlopen and related functions from crt0.o into libc. This reduces the size of every dynamically linked executable by 248 bytes, and it reduces the size of static executables by a lesser amount. It also eliminates some global namespace pollution. With this change in place, the source for dlfcn.h should probably be moved to "/usr/src/include". I'll save that for another day. Compatibility note: Programs which use dlopen, if compiled on systems with this change, will not run on systems with a libc from prior to this change. Very few programs use dlopen, so I think that is OK. Revision Changes Path 1.35 +1 -5 src/lib/csu/i386/Makefile 1.33 +17 -119 src/lib/csu/i386/crt0.c 1.42 +7 -3 src/lib/libc/gen/Makefile.inc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message