sunfish added a comment. This is ok, for now at least. I was imagining that we'd eventually want to just take all undefined global symbols and automatically generate imports for them. Do you think this would work? https://reviews.llvm.org/D26875