Redefining Go Functions

22 points by carlana


carlana

Finally, the joy of monkey patching comes to Go. :-)

xyproto

In a similar vein, it is also possible to run machine code (as hex) directly from Go, here's a small project of mine: https://github.com/xyproto/jit

dzwdz

the address from the program output will match the instruction address in the disassembler output.

TIL Go has opinions about ASLR. It seems that they've added support for it since, but not enabled by default? I haven't verified this, I might be wrong.

It wouldn't really make sense to enable it for pure Go binaries in the first place, so there's that too. I haven't really ever thought about this, it's an interesting tradeoff to make. Seems like it's working out.