mips64el-unknown-linux-gnu-gcc交叉编译ELF-64程序
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
当用mips64el-unknown-linux-gnu-gcc编译一个t.c的文件时,
t.c的内容如下:
#include<stdio.h>
int main()
{
return 0;
}
mybox ~ # mips64el-unknown-linux-gnu-ld -o -m elf64ltsmip t t.o
mips64el-unknown-linux-gnu-ld: cannot find elf64ltsmip: No such file or directory
t.o: In function `main':
t.c:(.text+0x0): multiple definition of `main'
t:(.text+0x0): first defined here
可以用下面的方法解决这个问题:
mips64el-unknown-linux-gnu-gcc -mabi=64 -c t.c
mips64el-unknown-linux-gnu-ld -m elf64ltsmip -o t t.o
用下面的这个命令可以看该机器都支持哪几种emulations:
mybox ~ # mips64el-unknown-linux-gnu-ld -o -mabi=64 t t.o
mips64el-unknown-linux-gnu-ld: unrecognised emulation mode: abi=64
Supported emulations: elf32ltsmipn32 elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献2条内容
所有评论(0)