On Mon, Oct 15, 2012 at 1:41 AM, Chris Bennett
<ch...@bennettconstruction.us> wrote:
> On Sat, Oct 13, 2012 at 02:29:49PM -0500, Chris Bennett wrote:
>> I am getting errors with nasm.
>>
>> # nasm -f aoutb hello.asm
>> # ld -e _start -o hello hello.o
>> ld: warning: cannot find entry symbol _start; defaulting to 1c000114
>> # ./hello
>> ./hello[1]: syntax error: `(' unexpected
>>
>> or
>>
>> # nasm -f aout  hello.asm
>> # ld -s -o hello hello.o
>> hello.o: file not recognized: File format not recognized
>>
>> or
>>
>> # nasm -f elf  hello.asm
>> # ld -s -o hello hello.o
>> ld: warning: cannot find entry symbol _start; defaulting to 1c000120
>> # ./hello
>> ./hello[1]: syntax error: `(' unexpected
>>
>> I have never had a problem previously.
>> This is the latest version of nasm-2.10.04
>>
>> I am running:
>>
>> OpenBSD 5.2-current (GENERIC) #22: Mon Sep 24 18:31:52 MDT 2012
>>     t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
>> cpu0: Intel(R) Pentium(R) III Mobile CPU 1000MHz ("GenuineIntel" 686-class) 
>> 1 GHz
>> cpu0: 
>> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR,SSE
>>
>
> I have updated to latest -current and problem persists.
>
>
> OpenBSD 5.2-current (GENERIC) #28: Tue Oct  9 21:29:23 MDT 2012
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) III Mobile CPU 1000MHz ("GenuineIntel" 686-class) 1 
> GHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR,SSE
>

Hi,

can you give us the source of hello.asm?

Cheers,

-- 
Sylvestre Gallon

Reply via email to