1 #include <stdio.h>
2
3 int main()
4 {
5 printf("test!!!!!!\n");
6 return 1;
7 }
# ./test
-/bin/sh: ./test: not found
root@Ubuntu:~/share$ arm-linux-readelf -d test
Dynamic segment at offset 0x5e4 contains 20 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000c (INIT) 0x8344
0x0000000d (FINI) 0x85b8
0x00000004 (HASH) 0x8128
0x00000005 (STRTAB) 0x8218
0x00000006 (SYMTAB) 0x8168
0x0000000a (STRSZ) 174 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x106c0
0x00000002 (PLTRELSZ) 32 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x8324
0x00000011 (REL) 0x82fc
0x00000012 (RELSZ) 40 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x6ffffffe (VERNEED) 0x82dc
0x6fffffff (VERNEEDNUM) 1
0x6ffffff0 (VERSYM) 0x82c6
0x00000000 (NULL) 0x0
所需要的库已经放到开发板 /lib 下面了