1.汇编:
as -32 -o hello.o hello.s 2.链接:
ld -dynamic-link /lib/ld-linux.so.2 -lc -melf_i386 hello.o -o hello
本文介绍了一个简单的汇编和链接过程。首先使用as进行汇编,将源文件ohello.s编译为ohello.o。接着利用ld进行链接,将ohello.o与所需的动态库ld-linux.so.2连接在一起生成最终的可执行文件ohello。
1.汇编:
as -32 -o hello.o hello.s 2.链接:
ld -dynamic-link /lib/ld-linux.so.2 -lc -melf_i386 hello.o -o hello
906
1207
165

被折叠的 条评论
为什么被折叠?