2010-07-20 09:10:22     Building busybox utilities without any dependencies

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-07-20 09:10:22     Building busybox utilities without any dependencies

Jayaprabhu Nadarajan (INDIA)

Message: 91502   

 

Hi,

 

When i compile the kernel with Binary format selected as FDPIC following is the output for file command for busybox utility

 

"busybox: ELF 32-bit LSB executable, version 1 (SYSV), dynamically linked (uses shared libs), stripped"

 

and if the option selected is "FLAT" then i get the following output

 

"busybox: BFLT executable - version 4 ram"

 

What should i do to build the busybox utilities such that it should not have any dependencies on any library files.

 

Thanks,

Jp

QuoteReplyEditDelete

 

 

2010-07-20 09:26:11     Re: Building busybox utilities without any dependencies

Robin Getz (UNITED STATES)

Message: 91503   

 

JP:

 

Busybox will always have dependencies on external libraries - they can either be included on the file system seperately (build as a shared lib) or they can be included in the application itself (if you build it statically). -- if it is FDPIC/FLAT doesn't matter.

 

-Robin

QuoteReplyEditDelete

 

 

2010-07-20 09:38:08     Re: Building busybox utilities without any dependencies

Jayaprabhu Nadarajan (INDIA)

Message: 91504   

 

Hi Robin,

 

What option should i enable in the kernel for building it statically.

 

Thanks.

 

Jp

QuoteReplyEditDelete

 

 

2010-07-20 10:30:16     Re: Building busybox utilities without any dependencies

Jayaprabhu Nadarajan (INDIA)

Message: 91506   

 

Dear Robin,

 

With little digging i found it myself.

 

 

 

Thanks.

 

Regards,

 

Jp

Attachments

    Outcomes