Re: _syscall2 in PIC code on ix86

From: Keith Owens (kaos@ocs.com.au)
Date: Sat Jan 15 2000 - 04:31:36 EST


On 14 Jan 2000 12:32:17 -0800,
hpa@transmeta.com (H. Peter Anvin) wrote:
>> 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
>We probably should add a set of macros that include PIC support
>(_syscallX_pic)... it seems to me the obvious way to deal with this
>seems to push/pop %ebx around the syscall.

Which is what I am doing now. glibc 2.1.something has a generic
syscall(number, parms, ...) function which make life very easy when it
exists. Do not bother changing the kernel, this problem only affects a
few userspace utilities that (a) use syscalls and (b) want pic and (c)
the library does not have the syscalls defined.

-
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:26 EST