Using_an_MCStreamer_Directly_to_produce_an_o bject_file?


There were a couple of issues, but I think I have them fixed. The lack of all output was related to needing the following at the end of my function:


I was missing the finish call. Also, while I did make sure to add a .text section, I wasn’t adding symbol attributes to make functions global, so when I got around to linking, the linker couldn’t find things. This was solved with a simple call to:


Once with attr as llvm::MCSymbolAttr::MCSA_Global and once as llvm::MCSymbolAttr::MCSA_ELF_TypeFunction. Everything seems to work now. Thanks if you took a look, but this issue no longer needs attention.

Thanks much,
~Aaron Vose