Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 4,389 posts.

Systems & Performance
Any year
2549

Hotpatching a C Function on x86

In this post I’m going to do a silly, but interesting, exercise that should never be done in any program that actually matters. I’m going write a program that changes one of its function definitions while it’s actively running and using that function. Unlike last time , this won’t involve shared libraries, but it will…