[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Custom boot floppies?



On Tue, Aug 31, 1999 at 09:15:21PM -0400, Tim Moloney wrote:
> With libraries and root filesystem size in mind, I'm trying to link
> some programs with libc5 instead of libc6 on my RH60 system.
> Unfortunately, I'm not having any success.  As an example, I do the
> following:
> 
>   hello> gcc -nostdlib -L/usr/i486-linux-libc5/lib -lc -o hello hello.c
>   ld: warning: cannot find entry symbol _start; defaulting to 08048184
>   hello> ldd hello
>           libc.so.6 => /lib/libc.so.6 (0x40016000)
>           /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>   hello> ./hello
> 
>   Hello, world!
> 
>   Segmentation fault (core dumped)

Short answer: Install slackware on a separate partition and chroot
yourself there.

Long answer: Read the glibc and gcc documentation for how that might be
done.  It probably involves specifying --dynamic-linker=/lib/ld.so and a
few other goodies.  You'll need the old libc5 headers in place when you
compile libc5 programs.  You might want to read up on some of the small
linux distributions which do this already, ie: tomsrtbt, etc.

-- 
Steve Borho



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]