Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID


We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Errno in asm

cste77cste77 Posts: 3Member

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 ?


  • 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.