ld: i386 architecture&…
来源:互联网 发布:mac系统ai 编辑:程序博客网 时间:2024/06/06 00:26
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_386 -s-o hello hello.o
- ld: i386 architecture&…
- weibo 登录&nbsp…
- Android edittext&nbsp…
- !!! FAILED BINDER&nbsp…
- OGNL & ValueStack&…
- Javascript_DOMContentLoaded&nbsp…
- ApplicationEventMulticaster&nbsp…
- LA 5713 Qin&nbsp…
- Convex Hull Algorithms & general…
- WIFI Architecture (inf…
- WIFI Architecture (inf…
- WIFI Architecture (hot…
- WIFI Architecture (hot…
- WIFI Architecture (P2P…
- WIFI Architecture (P2P…
- Innodb Architecture an…
- /usr/bin/ld: cannot find libncur…
- google desktop search&…
- 转自----一招克死所有病毒 - mars…
- 特征匹配
- win7下myeclipse 9.0破解(图…
- The value for the…
- opencv缺少tbb.dll或者tbb_debug.d…
- ld: i386 architecture&…
- linux下more\cat\less小区别
- 利用Python抓取和解析网页(…
- ubuntu10.10+双显卡I卡N卡+bumbleb…
- ubuntu解压所有格式命令【留着用】
- 我的博客今天0岁306天了,我领取了…
- 逆天啊!matlab居然可以在手机上运…
- solution:SDL_image.h:undefined&n…
- 牛人主页(主页有很多论文代…