Using LD_PRELOAD to override a function
This was blatantly stolen from technovelty, kept here because I hate it when my bookmarks die. For some reason, people seem to get this quite wrong a lot of the time. Certainly one should not be playing with symbols that start with __ unless you really know what you’re doing with them. ianw@lime:~/tmp/override$ cat override.c […]