Re: nasm problem - SOLVED

2012-10-15 Thread Andres Perera
On Mon, Oct 15, 2012 at 10:41 AM, John Long wrote: > On Mon, Oct 15, 2012 at 09:48:57AM -0500, Chris Bennett wrote: >> On Mon, Oct 15, 2012 at 09:31:34AM -0500, Chris Bennett wrote: >> > I have added this: >> > >> > section .note.openbsd.ident >> > align 2 >> > dd 8 >> > dd 4 >> > dd 1 >> > d

Re: nasm problem - SOLVED

2012-10-15 Thread John Long
On Mon, Oct 15, 2012 at 09:48:57AM -0500, Chris Bennett wrote: > On Mon, Oct 15, 2012 at 09:31:34AM -0500, Chris Bennett wrote: > > I have added this: > > > > section .note.openbsd.ident > > align 2 > > dd 8 > > dd 4 > > dd 1 > > db 'OpenBSD',0 > > dd 0 > > align 2 > > > > But get error:

Re: nasm problem - SOLVED

2012-10-15 Thread Chris Bennett
On Mon, Oct 15, 2012 at 09:31:34AM -0500, Chris Bennett wrote: > I have added this: > > section .note.openbsd.ident > align 2 > dd 8 > dd 4 > dd 1 > db 'OpenBSD',0 > dd 0 > align 2 > > But get error: > > sfhello.asm:1: error: segment name `.note.openbsd.ident' not recognized > This doe

Re: nasm problem

2012-10-15 Thread Chris Bennett
I have added this: section .note.openbsd.ident align 2 dd 8 dd 4 dd 1 db 'OpenBSD',0 dd 0 align 2 But get error: sfhello.asm:1: error: segment name `.note.openbsd.ident' not recognized

Re: nasm problem

2012-10-15 Thread Chris Bennett
On Mon, Oct 15, 2012 at 11:44:17AM +, Stuart Henderson wrote: > On 2012-10-13, 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 > > # ./

Re: nasm problem - Probably not.

2012-10-15 Thread Joel Sing
On Mon, 15 Oct 2012, Chris Bennett wrote: > I went and tried files I had produced many months ago and I get same error! > > ./cat[1]: syntax error: `(' unexpected > > I don't think the problem is with nasm, but something else? For some reason the kernel does not think it is a valid executable - ca

Re: nasm problem

2012-10-15 Thread Stuart Henderson
On 2012-10-13, 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

Re: nasm problem - Probably not.

2012-10-15 Thread Remco
Chris Bennett wrote: > I went and tried files I had produced many months ago and I get same > error! > > ./cat[1]: syntax error: `(' unexpected > > I don't think the problem is with nasm, but something else? > > Chris Bennett Is it possible you somehow mixed up i386/amd64 libraries/binaries ?

Re: nasm problem

2012-10-15 Thread Sylvestre Gallon
On Mon, Oct 15, 2012 at 1:41 AM, Chris Bennett 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 >> # .

Re: nasm problem - Probably not.

2012-10-14 Thread Chris Bennett
I went and tried files I had produced many months ago and I get same error! ./cat[1]: syntax error: `(' unexpected I don't think the problem is with nasm, but something else? Chris Bennett

Re: nasm problem

2012-10-14 Thread Chris Bennett
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 err

nasm problem

2012-10-13 Thread Chris Bennett
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.