I'm working on a compiler project that requires testing some stuff with Rust. I have some LLVM passes that can only be ran out-of-tree. So after the pass, I still have to obtain object files and then binaries. I don't know how to link the object files (I don't suppose there's a way to do it with Rust). I've tried doing it with cc and clang but they scream back about link errors. I was wondering whether anyone has ever done manual linking or has any idea how I can do this any other easier way. I've been able to succeed with small files but for large programs, it's been a disaster.
Any help/suggestions would be most appreciated!