私のOSはubuntu 13.04 64ビットです
私はそれを修正するために何時間も無駄にしました本当にあなたの助けが必要です
この test.s が返す
Accessing a corrupted shared library
.code32
.section .data
par1:
.int 33
msg:
.asciz "%d\n"
.section .text
.globl _start
_start:
pushl $par1
pushl $msg
call printf
cikis:
movl $1,%eax
movl $1,%ebx
int $0x80
ldd test.out
ldd test.out
linux-vdso.so.1 => (0x00007fff615fe000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbfb56f8000)
/lib32/libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x00007fbfb5ae0000)
メイクファイル
as test.s -o test.o
ld -dynamic-linker /lib/ld-linux.so.2 -lc test.o -o test.out
//私も試しました
ld -dynamic-linker /lib32/ld-linux.so.2 -lc test.o -o test.out
64ビットubuntuのガスでC関数を使用するにはどうすればよいですか