NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Assembly example (nasm) for amd64 in NetBSD



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


Home | Main Index | Thread Index | Old Index