[uClibc]here's a working multicall for e2fsprogs-1.18 _with_ uClibc support for i386
Manuel Novoa III
mnovoa3 at bellsouth.net
Thu Jan 18 17:49:16 UTC 2001
Hello all,
Attached is a patch to the stock e2fsprogs-1.18 package and e2fsbox-0.01,
a simple multicall binary for the e2fsprogs. Best of all, besides working
for gcc, it works with gcc-uClibc-i386. ;-) Other archs currently need some
additional patching to e2fsprogs or some additional work on uClibc.
Standalone binary sizes for comparison appear at the end of this message.
Anyone wanting to run with this is welcome to, as I plan to continue
concentrating primarily on uClibc stuff.
Manuel
Examples for uClibc: (UNIFIED_SYSCALL = true)
---------------------------------------------------------------------------
[mjn3 at mars e2fsbox]$ ./e2fsbox
Legal program names:
e2fsck
mke2fs
badblocks
[mjn3 at mars e2fsbox]$ file e2fsbox-* ; ldd e2fsbox-shared ; size e2fsbox-* ; ls -l e2fsbox-*
e2fsbox-shared: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped
e2fsbox-static: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, stripped
libuClibc.so.1 => /lib/libuClibc.so.1 (0x4000e000)
text data bss dec hex filename
124168 1896 1440 127504 1f210 e2fsbox-shared
140069 1816 3200 145085 236bd e2fsbox-static
-rwxrwxr-x 1 mjn3 mjn3 132660 Jan 18 11:08 e2fsbox-shared
-rwxrwxr-x 1 mjn3 mjn3 147944 Jan 18 11:08 e2fsbox-static
----------------------------------------------------------------------------
[mjn3 at mars e2fsbox]$ ./e2fsbox
Legal program names:
e2fsck
mke2fs
badblocks
tune2fs
dumpe2fs
e2label
fsck
mklost+found
chattr
lsattr
uuidgen
[mjn3 at mars e2fsbox]$ file e2fsbox-* ; ldd e2fsbox-shared ; size e2fsbox-* ; ls -l e2fsbox-*
e2fsbox-shared: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped
e2fsbox-static: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, stripped
libuClibc.so.1 => /lib/libuClibc.so.1 (0x4000e000)
text data bss dec hex filename
150623 2420 3520 156563 26393 e2fsbox-shared
168529 2264 5760 176553 2b1a9 e2fsbox-static
-rwxrwxr-x 1 mjn3 mjn3 161416 Jan 18 11:34 e2fsbox-shared
-rwxrwxr-x 1 mjn3 mjn3 178624 Jan 18 11:34 e2fsbox-static
----------------------------------------------------------------------------
[mjn3 at mars e2fsbox]$ ./e2fsbox
Legal program names:
e2fsck
debugfs
mke2fs
badblocks
tune2fs
dumpe2fs
e2label
fsck
mklost+found
chattr
lsattr
uuidgen
[mjn3 at mars e2fsbox]$ file e2fsbox-* ; ldd e2fsbox-shared ; size e2fsbox-* ; ls -l e2fsbox-*
e2fsbox-shared: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped
e2fsbox-static: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, stripped
libuClibc.so.1 => /lib/libuClibc.so.1 (0x4000e000)
text data bss dec hex filename
187812 2632 3752 194196 2f694 e2fsbox-shared
205881 2392 6080 214353 34551 e2fsbox-static
-rwxrwxr-x 1 mjn3 mjn3 200768 Jan 18 11:31 e2fsbox-shared
-rwxrwxr-x 1 mjn3 mjn3 218072 Jan 18 11:31 e2fsbox-static
--------------------------------------------------------------------------
For comparison, here are the sizes of the stripped standalone binarys
compiled with shared uClibc (except fo e2fsck.static of course).
[mjn3 at mars bins]$ size *
text data bss dec hex filename
7710 292 172 8174 1fee badblocks
7728 340 184 8252 203c chattr
73011 824 456 74291 12233 debugfs
33187 544 552 34283 85eb dumpe2fs
103415 1464 340 105219 19b03 e2fsck.shared
119397 1432 2016 122845 1dfdd e2fsck.static
3509 184 1152 4845 12ed e2label
11265 452 832 12549 3105 fsck
5859 340 172 6371 18e3 lsattr
50096 840 1248 52184 cbd8 mke2fs
3203 192 120 3515 dbb mklost+found
27305 708 556 28569 6f99 tune2fs
4659 244 136 5039 13af uuidgen
[mjn3 at mars bins]$ ls -l
total 528
-rwxrwxr-x 1 mjn3 mjn3 9612 Jan 18 11:38 badblocks
-rwxrwxr-x 1 mjn3 mjn3 10016 Jan 18 11:38 chattr
-rwxrwxr-x 1 mjn3 mjn3 79868 Jan 18 11:38 debugfs
-rwxrwxr-x 1 mjn3 mjn3 36824 Jan 18 11:38 dumpe2fs
-rwxrwxr-x 1 mjn3 mjn3 110828 Jan 18 11:38 e2fsck.shared
-rwxrwxr-x 1 mjn3 mjn3 126240 Jan 18 11:38 e2fsck.static
-rwxrwxr-x 1 mjn3 mjn3 4996 Jan 18 11:38 e2label
-rwxrwxr-x 1 mjn3 mjn3 13140 Jan 18 11:38 fsck
-rwxrwxr-x 1 mjn3 mjn3 8076 Jan 18 11:38 lsattr
-rwxrwxr-x 1 mjn3 mjn3 55256 Jan 18 11:38 mke2fs
-rwxrwxr-x 1 mjn3 mjn3 4684 Jan 18 11:38 mklost+found
-rwxrwxr-x 1 mjn3 mjn3 30968 Jan 18 11:38 tune2fs
-rwxrwxr-x 1 mjn3 mjn3 6544 Jan 18 11:38 uuidgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e2fsprogs-1.18-mjn3.diff.gz
Type: application/x-gzip
Size: 1977 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20010118/e50bfba9/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e2fsbox-0.01.tgz
Type: application/x-gzip
Size: 2981 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20010118/e50bfba9/attachment-0001.bin
More information about the uClibc
mailing list