I think that's what relocs.py is for, though for some reason it doesn't automatically generate the AArch64 file at the moment. Tim. http://reviews.llvm.org/D4779