mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-05 19:13:46 +00:00
it to setup vsyscall redirects on amd64 and the _dl_sysinfo_int80 redirect on x86. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3503
12 lines
432 B
C
12 lines
432 B
C
#include "core.h"
|
|
|
|
void VGP_(setup_redirects)(void)
|
|
{
|
|
/* Redirect _dl_sysinfo_int80, which is glibc's default system call
|
|
routine, to the routine in our trampoline page so that the
|
|
special sysinfo unwind hack in vg_execontext.c will kick in.
|
|
*/
|
|
VG_(add_redirect_sym_to_addr)("soname:ld-linux.so.2", "_dl_sysinfo_int80",
|
|
VG_(client_trampoline_code)+VG_(tramp_syscall_offset));
|
|
}
|