On apr 13 21:25, Jason Mitchell wrote:
> Rocky,
> 
> The error means that the executable can't run on the CPU you have. Definitely 
> NOT bad code. Running "ldd testcpu.o" might give you more of a idea of what's 
> wrong.
> 
> HTH,
> 
> Jason M.

The error it gives is

$ ldd testcpu.o
ldd: testcpu.o: invalid ELF class 2; expected 1

But after adding the `.note.netbsd.iden' section in the assembly code,
as suggested by RVP, the file runs and works as expected.

Rocky

Reply via email to