LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1433|回复: 1

使用busybox的init,怎么处理动态库的问题

[复制链接]
发表于 2007-12-3 13:09:22 | 显示全部楼层 |阅读模式
我在at91rm9200的板子上做一个ramdisk,我把busybox静态编译,启动没有问题,把busybox编译程使用动态库,就会出现init缺少动态库的问题

我确定busybox所需要的动态库都已经在ramdisk的/lib目录下了,但是怎么才能让init(或者说是busybox)找到所需要的动态库呢?

有碰到这个问题的兄弟,帮忙下

还有bash的问题,怎么进行交叉编译移植到arm下,我认为busybox的lash太简单了,不符合我的要求.
发表于 2007-12-3 17:33:18 | 显示全部楼层
版本:bash-3.1
cat >cache.log<<EOF
ac_cv_func_setvbuf_reversed=yes
EOF

# CC="arm-linux-gcc -mbig-endian" ./configure --cache-file=cache.log --host=arm-linux
# make
# readelf -h bash
ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x1b4cc
  Start of program headers:          52 (bytes into file)
  Start of section headers:          1848960 (bytes into file)
  Flags:                             0x4000002, has entry point, Version4 EABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         7
  Size of section headers:           40 (bytes)
  Number of section headers:         38
  Section header string table index: 35
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表