Skip to content

cross compile success,but not runable #293

@tangrames

Description

@tangrames

After cross compiling, the executable program format is proved to be correct by checking the readelf - h print information

ELF 头:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
类别: ELF32
数据: 2 补码,小端序 (little endian)
版本: 1 (current)
OS/ABI: UNIX - System V
ABI 版本: 0
类型: EXEC (可执行文件)
系统架构: ARM
版本: 0x1
入口点地址: 0x16094
程序头起点: 52 (bytes into file)
Start of section headers: 3255020 (bytes into file)
标志: 0x5000400, Version5 EABI, hard-float ABI
本头的大小: 52 (字节)
程序头大小: 32 (字节)
Number of program headers: 10
节头大小: 40 (字节)
节头数量: 48

Error info:
root@phyboard-segin-imx6ul-6:/home/zeromq# ./router
-sh: ./router: No such file or directory

when run "ldd router" is printed as follows:

root@phyboard-segin-imx6ul-6:/home/zeromq# ldd router
linux-vdso.so.1 (0xbed1e000)
libzmq.so.5 => /home/zeromq/libzmq.so.5 (0xb6e8e000)
libczmq.so.4 => /home/zeromq/libczmq.so.4 (0xb6e17000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb6dee000)
libc.so.6 => /lib/libc.so.6 (0xb6cae000)
libunwind.so.8 => /usr/lib/libunwind.so.8 (0xb6c6d000)
libdl.so.2 => /lib/libdl.so.2 (0xb6c5a000)
librt.so.1 => /lib/librt.so.1 (0xb6c43000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6afd000)
libm.so.6 => /lib/libm.so.6 (0xb6a7a000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6a4d000)
/lib/ld-linux.so.3 => /lib/ld-linux-armhf.so.3 (0xb6f18000)
root@phyboard-segin-imx6ul-6:/home/zeromq#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions