stabilizer
stabilizer copied to clipboard
Question: Can the randomization code be separated out and called within a library
It's great that you've decided to maintain this tool :heart:
I am interested in doing all the memory layout randomization from within an LLVM compiled application of my own. I write in Julia (a programming language compiled using LLVM), and we're discussing how we can make our benchmarking tools handle memory layout issues better. My idea is to call a function that does the randomization, between benchmark evaluations.
Is the randomization functionality nicely encapsulated within a single C++ function? If so, which one? If not, is it possible to make it so? Perhaps only some of the randomization is possible this way? Perhaps it isn't possible to shuffle code about while it's running?
Many thanks :pray:
I think you are looking for onTimer()
. It's called every 250 ms to rerandomize stack and functions layout.
But there are problems with stabilizer that I don't know how to solve with reasonable effort. Check other open issues before proceeding further ahead.