From: Tom Hughes Date: Mon, 22 Mar 2004 19:46:29 +0000 (+0000) Subject: Redirect _dl_sysinfo_int80, which is glibc's default system call X-Git-Tag: svn/VALGRIND_2_1_2~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f1434ff0ccc1b2e40531808348ba6818eb39e30;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2334 --- diff --git a/coregrind/vg_symtab2.c b/coregrind/vg_symtab2.c index 72be6fa373..634f1fc8a7 100644 --- a/coregrind/vg_symtab2.c +++ b/coregrind/vg_symtab2.c @@ -2193,6 +2193,13 @@ void VG_(setup_code_redirect_table) ( void ) "soname:libpthread.so.0", redirects[i].to); } + /* 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_addr)("soname:ld-linux.so.2", "_dl_sysinfo_int80", + VG_(client_trampoline_code)+VG_(tramp_syscall_offset)); + /* Overenthusiastic use of PLT bypassing by the glibc people also means we need to patch the following functions to our own implementations of said, in mac_replace_strmem.c.