reduced d-i demo3
Working from a somewhat old demo3, I reduced libc. (Got mklibs working;
the fixes have been commited to boot-floppies cvs). The result:
Total demo3 system!
-rw-rw-r-- 1 joey joey 89228 Jan 11 12:45 ld-2.2.so
-rw-rw-r-- 1 joey joey 497612 Jan 11 12:45 libc-2.2.so
The libraries. (Excluding ncurses for cdebconf, which will be changing to
This is very, very good news! Ok, libc is gonna be half of the footprint,
but this is small enough to fit on a disk with a kernel. Other ways to
look at it:
joey@gumdrop:~/tmp>ls -l demo3.tar demo3.tar.gz
-rw-rw-r-- 1 joey joey 1116160 Jan 11 12:47 demo3.tar
-rw-rw-r-- 1 joey joey 433037 Jan 11 12:47 demo3.tar.gz
I'm going to attempt to get a new demo out incorporating the other demo
systems others have produced, and library reduction. Unfortunatly, while
the libraries get reduced, ash doesn't work (busybox does).
root@gumdrop:/home/joey/tmp/demo3>chroot . bin/sh
bin/sh: error while loading shared libraries: bin/sh: symbol sys_siglist, version GLIBC_2.1 not defined in file libc.so.6 with link time reference
I'm sure this comment in mklibs.sh has some bearing:
# ash has undefined reference to sys_siglist if .bss is not mentioned
# here. Reported by Joel Klecker.
# All symbols are epxosed, so we just catch all. Suggested by Roland
# McGrath. Another thing to try is to investigate --dynamic-reloc.
$objdump --dynamic-syms "$@" 2> /dev/null \
| sed -n 's/^.* \([^ ]*\)$/\1/p'
# | sed -n 's/^.*[\*UND\*|.bss].* \([^ ]*\)$/\1/p'
see shy jo