Subject: my first mac68k asm program...
To: None <port-mac68k@netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: port-mac68k
Date: 06/20/2002 17:22:56
...this should have been:

--------------
SYS_exit        =       1

.text
        .align 2

.globl _start
_start:

        movl    #SYS_exit,%d0
        trap    #0
--------------

But it does not work:

mac68k:~/work$ as -o ahello.o ahello.s 
mac68k:~/work$ ld -m m68kelfnbsd -e _start -o ahello ahello.o
mac68k:~/work$ ./ahello 
bash: ./ahello: cannot execute binary file


what's wrong?

regards,
chris