From owner-freebsd-current@FreeBSD.ORG Thu Nov 20 23:41:52 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1218216A4CE for ; Thu, 20 Nov 2003 23:41:52 -0800 (PST) Received: from server.vk2pj.dyndns.org (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DABC43FEC for ; Thu, 20 Nov 2003 23:41:50 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1])hAL7fiJD071241; Fri, 21 Nov 2003 18:41:44 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.12.9p1/8.12.9/Submit) id hAL7fhlJ071240; Fri, 21 Nov 2003 18:41:43 +1100 (EST) (envelope-from peter) Date: Fri, 21 Nov 2003 18:41:43 +1100 From: Peter Jeremy To: "boyd, rounin" Message-ID: <20031121074143.GB71152@server.vk2pj.dyndns.org> References: <2147483647.1069240727@[192.168.42.6]> <20031120095214.GA68334@server.vk2pj.dyndns.org> <050d01c3afa8$1dfb97a0$b9844051@insultant.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <050d01c3afa8$1dfb97a0$b9844051@insultant.net> User-Agent: Mutt/1.4.1i cc: current@freebsd.org Subject: Re: Unfortunate dynamic linking for everything X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 07:41:52 -0000 On Thu, Nov 20, 2003 at 09:51:48PM +0100, boyd, rounin wrote: >From: "Peter Jeremy" >> >Shouldn't that be 'chmod +t /bin/sh' ??? >> >> Definitely. Why waste a new bit when there's already a perfectly good >> one that is (or was) defined for the purpose. > >the 't' bit was known as the 'sticky' bit to keep frequently used, >sharable (judged by a human) text segments in core. since then >that bit has been overloaded to death. The purpose for setting the 't' bit was to speed up exec'ing of frequently used executables by avoiding the need to load the text segment from the filesystem. This is exactly what the suggested pre-linking achieves. As for overloading the 't' bit, I don't believe it's ever been used for anything else on executable files. I agree it grew a distinct meaning for directories but the 'x' bits have always meant different things on files and directories and the setgid bit means different things on executable and non-executable files. >shared libraries have always been a mistake. That is a matter of opinion. Shared libraries have both advantages and disadvantages. Statically linking /usr/X11R6/bin demonstrates one advantage of shared libraries. Peter