]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Have a cleaner way to remove the massif preload from LD_PRELOAD.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 19 Apr 2017 20:15:50 +0000 (20:15 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 19 Apr 2017 20:15:50 +0000 (20:15 +0000)
commit0282832312e2de76b2f3a5d3f22bf34749d5979a
treeaf84abc32b6ce9f7b60e7284dbeb25b3b26b40be
parentec4400bccb749a1375deb7dbb13d2d5c8cfcc68f
Have a cleaner way to remove the massif preload from LD_PRELOAD.

The previous code was removing the massif preload (when --pages-as-heap=yes)
by replacing the entry with spaces.
This is not very clear, and I suspect this gives problems with the
android linker, which seems to use such a space entry as a real entry
to load (and then fails to start the application).

This patch really removes the entry, by shifting the characters.

Tested on amd64/debian.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16306
massif/ms_main.c