ubuntu 64位使用nasm汇编出现问题incompatible-with-i386-x86-64-output
来源:互联网 发布:英国哪个城市最美 知乎 编辑:程序博客网 时间:2024/06/06 00:30
linux X86_64在进行汇编连接的时候出问题
详解见http://www.linuxquestions.org/questions/programming-9/assembly-error-i386-architecture-incompatible-with-i386-x86-64-output-827609/
我用nasm编译
其实很简单,因为我们编译的时候是编译成i386的目标文件(nasm -f elfhello.asm),这个是给32位的elf
所以连接的时候也要指明i386:ld -m elf_i386 -s-o hello hello.o
0 0
- ubuntu 64位使用nasm汇编出现问题incompatible-with-i386-x86-64-output
- is incompatible with i386:x86-64 output
- ld: i386 architecture of input file `exit.o' is incompatible with i386:x86-64 output
- ld: i386 architecture of input file `eatsyscall.o' is incompatible with i386:x86-64 output
- linux下出现architecture of input file `*.o' is incompatible with i386:x86-64 output的解决方法
- usr/bin/ld: i386 architecture of input file XXX.a( xxx.o) is incompatible with i386:x86-64 output
- /usr/bin/ld: i386 architecture of input file `regcomp.o' is incompatible with i386:x86-64 output
- AT&T GNU X86-64,I386 汇编语法简述
- NASM x86汇编入门指南
- NASM x86汇编入门指南
- x86, x86-64, i386, IA32, IA64...
- x86, x86-64, i386, IA32, IA64...
- x86, x86-64, i386, IA32, IA64 区别
- X86 X86-64 i386 IA-32区别
- 区分i386/i686/x86-64/
- 《ubuntu下x86汇编》Intel格式—nasm命令与asm后缀文件
- 64位Ubuntu 14.04安装“ibc6-i386”依赖库解决办法。
- EM64T AMD64(x86-64/x64) i386
- 代码混淆
- 骨骼动画详解-Cocos Studio
- baysian interence 03
- hello world linux汇编
- C++中相对路径与绝对路径 文件路径
- ubuntu 64位使用nasm汇编出现问题incompatible-with-i386-x86-64-output
- js单线程
- 跟我一起学习MySQL技术内幕(第五版):(第一章学习日记3)
- [BZOJ1443][JSOI2009]游戏Game
- JS中的call()和apply()方法
- NGINX学习笔记——配置缓冲
- 11-21 Ubuntu下MySQL的安装及远程连接配置
- &和&&的区别
- Java学习笔记1-JDBC数据库连接和无参存储过程