[BusyBox] Help! Booting NFS with ARM using shared libraries

yukwing.li at conexant.com yukwing.li at conexant.com
Thu Apr 17 02:00:22 UTC 2003


Hi Erik,

Thanks for the info. 

 My problem is that I am trying to figure out why Busybox cannot start 
(with the error "init: error while loading shared libraries: libc.so.6: 
cannot open shared object file") in my ARM platform.  The 'ldd' command in 
my i386 platform is not capable of recognizing ARM or MIPS executables. It 
sounds like I need to find the source of ldd and build an ARM version of 
it, and then use a static version of Busybox to boot up my ARM platform in 
order to run 'ldd' on the dynamic version of Busybox to see what other 
libraries are needed.  Is that what are you suggesting?

Regards,

Yuk-Wing Li





"Erik Andersen" <andersen at codepoet.org>
04/16/2003 05:47 PM
Please respond to andersen

 
        To:     yukwing.li at conexant.com
        cc:     busybox at busybox.net
        Subject:        Re: [BusyBox] Help! Booting NFS with ARM using shared libraries


On Wed Apr 16, 2003 at 05:27:51PM -0700, yukwing.li at conexant.com wrote:
> Hi Erik,
> 
> Thank you for your quick reply!
> 
> I do have ld-XXX and libc-XXX sitting in my <nfs root>/lib directory so 
I 
> am not sure what goes wrong.  In the mean time, I do have another 
question 
> if you don't mind: 

If you run 'ldd' on your program, you may find that you are
using additional shared libraries....

> If libc.so.6 is being loaded by ld-linux.so.2, who is responsible to 
> invoke ld-linux.so.2 in the first place?  Sorry for my ignorance in this 

> init and library loading process.

Each ELF binary using the shared lib loader has an INTERP
program header, for example:

$ readelf -a /bin/true | grep -A1 INTERP
  INTERP         0x0000f4 0x080480f4 0x080480f4 0x00013 0x00013 R 0x1
        [Requesting program interpreter: /lib/ld-linux.so.2]

When the Linux kernel's elf loader (linux/fs/binfmt_elf.c) sees
that there is an interpreter set, it executes the intepreter.  It
is then the job of the intepreter to load the needed shared
libraries and run the application.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codepoet.org/lists/busybox/attachments/20030416/78edc0f4/attachment.htm


More information about the busybox mailing list