Writing a Self-Mutating x86_64 C Program (2013)
ephemeral.cx
Writing a Self-Mutating x86_64 C Program (2013)
1–10 of 42 posts
Re: Writing a Self-Mutating x86_64 C Program (2013)
#2Re: Writing a Self-Mutating x86_64 C Program (2013)
#3I guess in OpenBSD because of W ^ X this would not work?
Re: Writing a Self-Mutating x86_64 C Program (2013)
#4I guess in OpenBSD because of W ^ X this would not work?
Re: Writing a Self-Mutating x86_64 C Program (2013)
#5I guess in OpenBSD because of W ^ X this would not work?
Re: Writing a Self-Mutating x86_64 C Program (2013)
#6I guess in OpenBSD because of W ^ X this would not work?
[1] https://developer.apple.com/documentation/apple-silicon/port...
Re: Writing a Self-Mutating x86_64 C Program (2013)
#7Re: Writing a Self-Mutating x86_64 C Program (2013)
#8I often think this could maybe allow fantastic runtime optimisations. I realise this would be hardly debuggable but still..
Re: Writing a Self-Mutating x86_64 C Program (2013)
#9I guess in OpenBSD because of W ^ X this would not work?
In Linux it also needs mprotect() to change the permissions on the page so it can write it. The OpenBSD man page[0] indicate that it supports this as well, though notes that not all implementations are guaranteed to allow it, but my guess is it would generally work. [0] https://man.openbsd.org/mprotect.2
Re: Writing a Self-Mutating x86_64 C Program (2013)
#10I often think this could maybe allow fantastic runtime optimisations. I realise this would be hardly debuggable but still..