What string encoding does LLVM use for link maps?

I’m trying to parse a link map from an iOS application with a python script and I’m not sure what encoding it’s using. I’ve tried ASCII, UTF-8 and UTF-16 but all were rejected for invalid characters. Latin-1 seems to work but I’m not sure if this is correct.

If you’re using ld64, this isn’t really an LLVM question… but it’s probably dumping raw string data from the input object files, so there isn’t really any correct encoding. Just open it as binary.

Hmm okay, thanks! I’ll try that.