Errno in asm


I'm french and i try to set errno in my asm code, but is not success !

I have search and i don't, it's not in register or where is errno ?


  • What kind of errno are you trying to find? There are hundreds of different kinds.
  • I have main in c and one fonction on asm.

    My fonction is one syscall:
    Example : read

    I set int 0x80 for syscall an he return - errno.

    But how to set the errno in gobal offest table ?

    I try extern errno but gcc segmentation fault.

    I m in debian, x86 and compile with nasm -f elf
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion