Re: _syscall2 in PIC code on ix86

From: Alan Modra (alan@SPRI.Levels.UniSA.Edu.Au)
Date: Thu Jan 13 2000 - 18:05:42 EST


On Thu, 13 Jan 2000, Keith Owens wrote:

> Has anybody succeeded in using _syscall2 in code compiled with -fPIC on
> ix86? I'm trying to convert modutils to a shared library and the

If you want to use the standard syscall macros, then you're out of luck,
I'm afraid. %ebx is a reserved register in x86 PIC code, and all syscalls
(except for syscall0) use ebx. Have a look at the definition of _syscall6
for a way to code your own syscall macros that work with PIC.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:23 EST