From: Jeremy F. <je...@go...> - 2003-03-18 23:28:14
|
On Tue, 2003-03-18 at 14:31, Eyal Lebedinsky wrote: > Another confusing point: I see identical functions defined in > different > contexts, like VG_(do_syscall2) in general and my_do_syscall2 in > vg_mylibsc.c. Is there a need for vg_mylibc.c to be independent? Syscalls are special, because they require values to be placed in particular registers. They're static or inline, mainly so they can get the registers they need. There's a bug in that valgrind is compiled without -fpic despite being a shared object; the problem is that -fpic makes it hard for the syscall functions to get the registers they need. I poked at it for a while, but didn't come up with a nice enough solution to show off. Obviously the problem is solvable, because glibc does it. J |