From: nasm_user <nas...@16...> - 2007-10-13 00:25:22
|
Dear experts: I have a problem when I use nasm. It's like this: 1.I= installed the nasm program with the file of nasm-0.99.04.tar.bz2 ona remot= e system which I log on whith the software of secureCRT. If I use the shell= command: uname -a, the result is: SunOS t1000 5.10 Generic_118833-33 = sun4v sparc SUNW,Sun-Fire-T1000 Solaris It means the CPU is not one of x86= series. 2. I wrote an assembly source file called test.asm, and I comp= iled it using: nasm -f elf test.asm So the file test.o was generate= d. Next I used the command: file test.o the result is: test.o: = ELF 32-bit LSB relocatable 80386 Version 1 (I think here is where g= oes wrong,because I see 80386 instead of sparc) 3. finally, I used : = ld -o test test.o then, error ocurred,and the result was: ld: fat= al: file test.o: wrong ELF machine type: EM_386 ld: fatal: File process= ing errors. No output written to test The machine type in the ELF f= ile is EM_386 which is for an x86 processor and is incompatible with sparc.= It should be EM_SPARC for the sparc processor.But the type of nasm-0.99.04.= tar.bz2 is platform independent according to the download web page. How can I solve this problem? I'm looking forward to hearing from = you. Best W= ishes |