[BusyBox] static & shared lib

Lancelot lancelotice at gmail.com
Fri Aug 19 06:35:47 UTC 2005


I had mount the root_fs_arm.ext2 on /export/fs,
and the directory "lib" is under the /export/fs
in other words, it's under the base root system ("/") when my target
mount it using NFS.

So, it's not a symlink.

I am using kernel 2.6.10 & mount the root file system by NFS.
When I built busybox with share lib, it's always can run the program
"/sbin/init".
When it's work normal, I used ldd to get the library link of "/sbin/init".
And I can found out all those files in the "lib", 
and then I restart the target and do the same process, but it can't
exec "/sbin/init".
I want to know why and how to resolve this problem.

On 8/19/05, Rob Landley <rob at landley.net> wrote:
> On Thursday 18 August 2005 21:59, Lancelot wrote:
> > hi, Rob
> > I had checked I lib under /export/fs. those libary files are all in
> > this directory.
> 
> I'm confused: do you mean /lib is a symlink to /export/fs?
> 
> > ldd /sbin/init ==> list the follow messanges, and there are all in the lib
> > . /sbin/init: is setuid
> >         libm.so.0 => /lib/libm.so.0 (0x4000d000)
> >         libcrypt.so.0 => /lib/libcrypt.so.0 (0x40023000)
> >         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4003f000)
> >         libc.so.0 => /lib/libc.so.0 (0x4004e000)
> >         ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
> 
> Assuming init is a symlink to busybox, the interesting question is "so where
> does /lib live"?
> 
> Rob
>



More information about the busybox mailing list