HN
Hacker News
Top
New
Best
Ask
Show
Jobs
LD_PRELOAD is super fun. And easy | Hacker News Reader
LD_PRELOAD is super fun. And easy
jvns.ca
7 points
·
ot
·
·
5 comments
Open article
Save
View on HN
pmoriarty
·
So if you didn’t want your program to be attacked like this, you could: statically link your program..."
That's not really possible on Linux anymore, is it?
ucho
·
Of course it is. AFAIRF Valgrind works by replacing malloc() and free() that way.
pmoriarty
·
I meant: it's not possible to statically link programs on Linux anymore, is it?
danellis
·
Yes, it's possible. Just pass -static to gcc, for example.
TheCams
·
One of the funniest class I had when I was a student was to rewrite malloc and replace it using LD_PRELOAD then try to run Firefox for example.
Reply on news.ycombinator.com