From owner-freebsd-current@FreeBSD.ORG Sat Nov 22 13:04:39 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 6C23F16A4CE for ; Sat, 22 Nov 2003 13:04:39 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6583E43F3F for ; Sat, 22 Nov 2003 13:04:38 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9p2/8.12.9) with ESMTP id hAML2HMg057117; Sat, 22 Nov 2003 16:02:17 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)hAML2HEY057114; Sat, 22 Nov 2003 16:02:17 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sat, 22 Nov 2003 16:02:17 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Dimitry Andric In-Reply-To: <12310878141.20031122170314@andric.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Leo Bicknell cc: freebsd-current@freebsd.org cc: Tim Kientzle 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: Sat, 22 Nov 2003 21:04:39 -0000 On Sat, 22 Nov 2003, Dimitry Andric wrote: > On 2003-11-22 at 00:39:45 Tim Kientzle wrote: > > > Right now, /sbin/init is statically linked. > > Not here... I've built everything with WITH_DYNAMICROOT since the time > the option was introduced, and as such: > > # file /sbin/init > /sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.0.1, dynamically linked (uses shared libs), stripped > # ldd /sbin/init > /sbin/init: > libutil.so.3 => /lib/libutil.so.3 (0x28074000) > libcrypt.so.2 => /lib/libcrypt.so.2 (0x2807f000) > libc.so.5 => /lib/libc.so.5 (0x28097000) > > In fact, the only statically linked executable I can currently find in > my base system (= -CURRENT as of 2003-11-11) is /sbin/devd... The commit to force init to be linked statically was made on 2003/11/19, so your system is too old to see the change. Commit message attached below. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories revision 1.28 date: 2003/11/19 19:57:20; author: gordon; state: Exp; lines: +2 -0 Make init statically linked by default. It's not worth the pain of having a dynamically linked init as recently seen by ia64 woes. Approved by: re (jhb)