logoalt Hacker News

Panzerschrektoday at 5:59 AM5 repliesview on HN

Can it handle self-modifying code?

Why only x86_64? It has more sense to convert 32-bit programs, like many old games.


Replies

whizztertoday at 7:55 AM

I think self-modifying outside of JIT runtimes is a pretty rare thing these days compared to the 80s or 90s, .text sections are mostly RO these days and security requirements aren't going to decrease that.

oinkttoday at 6:03 AM

Consider reading the linked article, where this is explicitly addressed:

> Self Modifying and JIT-Compiled Code. Elevator, like all fully static binary rewriters, does not support self modifying or just-in-time-compiled code.

show 1 reply
linkregistertoday at 7:13 AM

Why doesn't it clean my garage also? I've got some leaves to rake as well.

perching_aixtoday at 8:21 AM

> Can it handle self-modifying code

If it did, it wouldn't be "fully static" anymore. It's fundamentally contradictory.

gobdovantoday at 6:14 AM

[dead]