做个备忘
as --x32 -o test1.o test1.s
ld -m elf32_x86_64 -o test2 test1.o
loop:loop.o
ld -dynamic-linker /lib/ld-linux.so.2 -m elf_i386 -lc -o loop loop.o
loop.o:loop.s
as --32 -o loop.o loop.s
.PHONY:clean
clean:
rm -rf loop.o loop