天嵌 ARM开发社区

 找回密码
 注册
查看: 2134|回复: 3

天嵌提供的交叉编译器的libc.so.6问题

[复制链接]
weety 发表于 2009-4-19 11:10:27 | 显示全部楼层 |阅读模式
大家请帮帮忙,帮我看一下这个问题。
我用天嵌提供的交叉编译器的库文件时,出现了错误,我用的是crosstools_3.4.1_softfloat/arm-linux/gcc-3.4.1-glibc-2.3.3/arm-linux/lib/libc-2.3.3.so,读出的elf头文件是ELF Header:
  Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            ARM
  ABI Version:                       0
  Type:                              DYN (Shared object file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x17484
  Start of program headers:          52 (bytes into file)
  Start of section headers:          1244052 (bytes into file)
  Flags:                             0x202, has entry point, GNU EABI, software FP
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         6
  Size of section headers:           40 (bytes)
  Number of section headers:         70
  Section header string table index: 67

但是执行或链接时会出错,错误如下:
libc.so.6: relocation error: /mnt/libc/libc.so.6: symbol __libc_stacke.....
libc-2.3.3.so: relocation error: /mnt/libc/libc-2.3.3.so: symbol __lie....
当执行gtk-demo时,出现如下错误
gtk-demo: /lib/libc.so.6: version `GLIBC_2.3.3' not found (required by /home/ar)
不知道是不是编译器的问题
希望高手能帮帮忙!谢谢了!
 楼主| weety 发表于 2009-4-19 11:16:13 | 显示全部楼层
自己顶了!大家快看看吧!
 楼主| weety 发表于 2009-4-19 11:19:21 | 显示全部楼层
信息不全,还有一点看不到
libc-2.3.3.so: relocation error: /mnt/libc/libc-2.3.3.so: symbol __libc_stack_end, version GLIBC_2.1 not defined in file ld-linux.soe
 楼主| weety 发表于 2009-4-19 12:22:43 | 显示全部楼层
问题已经解决,只需将编译器中的ld-linux.so.2和ld-2.3.3.so拷贝到系统lib目录下就行了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-6-11 03:46 , Processed in 1.031250 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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