简体   繁体   English

如何为busybox中的每个小程序构建ELF文件?

[英]How to build ELF file for each applet in busybox?

Assume, my busybox has two applets: cat , touch and it runs on mips arch. 假设我的busybox有两个applet: cattouch ,它在mips arch上运行。

Now I want two ELF file (cat & touch) in order to run on mips , no shared lib, static. 现在我想要两个ELF文件(cat和touch)以便在mips上运行,没有共享库,静态。

How to do that? 怎么做?

According to this FAQ (see Installing Busybox ), you can create symbolic links to one Busybox binary each with a name of the utility you need. 根据此常见问题解答 (请参阅Installing Busybox ),您可以创建指向一个Busybox二进制文件的符号链接,每个链接都带有所需的实用程序名称。 Then Busybox will detect as which utility it was invoked and behave accordingly. 然后,Busybox将检测到它被调用为哪个实用程序,并相应地运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM