OT: gas question

I Rattan ratta1i@cps.cmich.edu
Tue Sep 23 00:30:00 GMT 2008


Probably it may not be the group to ask the question.
The following assembly code works on Linux on P4 but
segfaults om Solaris-10 on AMD64 box. The instruction
in question is int $0x80.

Any pointers?

-ishwar
----

        .global main

main:  movl  $1, %eax
        movl  $0, %ebx
        int   $0x80
        ret
---



More information about the Gcc-help mailing list