compnerd added a comment. We have tests for the dyld bits in the tree already. You should be able to use that for inspiration for writing the tests. They are in `test/ExecutionEngine/RuntimeDyld/<ARCH>` https://reviews.llvm.org/D30709