NetBSD: a -current dinamikusan linkelt lett

Címkék

Luke Mewburn bejelentette, hogy a NetBSD -current ága teljesen dinamikusan linkelt rendszerré változott. Ez azt jelenti, hogy az összes bináris a /bin és a /sbin könyvtárban dinamikusan van linkelve a /lib könyvtárban található library-khoz. Ez mire jó? Ennek eredményeképpen egy kisebb / (root) könyvtárat kapunk, mai azt jelenti, hogy körülbelül 11.5 MB helyet spróroltunk az i386 rendszerben. Az új /rescue könyvtár ehhez még hozzáad kb. 2.5 MB statikusan linkelt "rescue" binárist, így a tényleges helymegtakarítás körülbelül 9 MB.

Luke Mewburn levele:From: Luke Mewburn

To: None current-users AT netbsd.org

Subject: HEADS UP: fully dynamic linked system now the default

Date: 09/23/2002 01:25:59

As mentioned a few weeks ago, we've switched to a fully dynamically linked system by default.

The net outcome:

+ /bin and /sbin are dynamically linked, along with the small number of programs in /usr/* that were still statically

linked.

+ The shared libraries that are required by /bin and /sbin

are installed in /lib, with symlinks from /usr/lib for

compatibility purposes.

+ The dynamic linker is installed in /libexec, with a symlinks from /usr/libexec for compatibility purposes.

+ Less disk space used on `/'. On the i386, the savings are

in the order of 11.5 MB (4.5 MB versus 16 MB). If the space consumed by /rescue is counted only in the "new" system, there's still a 9 MB saving.

+ Specific rescue tools are provided in /rescue, rather than overloading /bin and /sbin for that purpose.

+ The kernel's "-a" bootloader option now also prompts for the path to init(8), so "/rescue/init" can be used if /sbin/init won't start due to an unexpected failure.

+ Whilst dynamic linked programs start up slower that statically linked programs, there is active work in progress to resolve this issue.

If you don't want this behaviour, set MKDYNAMICROOT=no in mk.conf(5).

Luke.