Errno in asm - Programmers Heaven

Howdy, Stranger!

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

Categories

Errno in asm

cste77cste77 Posts: 3Member
Hello,

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 ?

Comments

  • BretBret Posts: 114Member
    What kind of errno are you trying to find? There are hundreds of different kinds.
  • cste77cste77 Posts: 3Member
    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.