mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-11 14:01:48 +00:00
idea is the same -- write functions with special names encoding sonames and fn names, and have the redir mechanism notice them. However the way the functions are generated is significantly changed: * The name mangling scheme has been replaced with one which is just about simple enough not to need a preprocessing phase. Hence vg_replace_malloc.c.base is replaced by vg_replace_malloc.c, and the preprocessor disappears. The demangler in vg_symtab2.c changes accordingly. * Kill off the horrendous LIBALIAS macro. In return we have to enumerate all the redirections longhand, but this is not a big deal. * Remove use of the GNUisms "attribute alias" and "attribute protected". * Remove the hardwired assumption that any C++ new/new[]/etc symbols we might want to intercept are mangled in GNU style. * Add more comments. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3510
72 KiB
72 KiB