Messages in this thread | | | From | Keith Owens <> | Subject | Re: _syscall2 in PIC code on ix86 | Date | Sat, 15 Jan 2000 20:31:36 +1100 |
| |
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/
| |