From: anonymous c. <nas...@us...> - 2010-10-07 00:26:01
|
> Does anyone see what is wrong with this. This is using version 2.04. > > COMPILING: ../../examples/cpuidExample/cpuid.asm > > nasm -I../../src/ -I../../examples/ -f elf64 -DCPU=IA64 -o > objs/examples/cpuidExample/cpuid.o ../../examples/cpuidExample/cpuid.asm You successfully assembled x86 source code into an ELF object file for x86-64. Looks like NASM did work as expected. > LINKING: target/examples/cpuidExample > > /usr/lib/gcc/ia64-suse-linux/4.1.2/../../../../ia64-suse-linux/bin/ld: > warning: i386:x86-64 architecture of input file > `objs/examples/cpuidExample/cpuid.o' is incompatible with ia64-elf64 output Your IA-64 linker refused to link the aforementioned x86-64 object file into an IA-64 executable. You should use an x86 or x86-64 linker instead and create a 32- or 64-bit x86 binary. How you'd run that binary on your IA-64 system is beyond the scope of NASM. The original Itanium processors had support for it in hardware, but the current ones rely on binary translation. In short: not a NASM problem. |