Re: syscall defines deficiency or gcc bug?

From: Jamie Lokier (
Date: Thu Aug 03 2000 - 12:12:53 EST

Brian Gerst wrote:
> > Ouch. So lemme it possible for some code macro to detect
> > it's being compiled pic on the x86 and use alternate macros that
> > save the appropriate registers?
> Look at the source to Glibc. They have to deal with this issue.

I have to wonder why Glibc's <sys/syscall.h> doesn't define these
macros, but instead includes <asm/unistd.h> which is a kernel header.

Here is a fine example of something that should not be using the kernel
header. Glibc should define the macros, and include PIC-safe varieties.

The fix here is to file a bug report for Glibc.

Or you could just use the syscall() function from Perl ;-)

-- Jamie

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:11 EST