On Mon, Oct 18, 2010 at 06:41:21PM +0700, Eugene Grosbein wrote: > On 18.10.2010 18:11, Kostik Belousov wrote: > > >> For arm, i386 and mips there are: > >> > >> lib/libc/arm/sys/syscall.S > >> lib/libc/i386/sys/syscall.S > >> lib/libc/mips/sys/syscall.S > > amd64 syscall() wrapper code is autogenerated. > > It seems, it's written here: > > # less /usr/obj/usr/src/lib/libc/syscall.S > #include "compat.h" > #include "SYS.h" > RSYSCALL(syscall) > > Well, I can just copy there three lines to ./syscall.S > and add the file to gcc command line.
I already told you that the syscall(2) wrapper is auto-generated on amd64. The official way to get it is to link with libc.
pgpGNep5msvAW.pgp
Description: PGP signature

