I can't find a reference (LLVM or ABI specs) as to what restrictions there are on symbol names (for functions and global variables). I want to know what characters are allowed. For C exports I know I must stick to the C format, but for symbols private to my libraries I can do something else. Where might I find a reference for this? -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Sign: Please digitally sign your emails. Encrypt: I'm also happy to receive encrypted mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130625/f4edd599/attachment.sig>
edA-qa mort-ora-y <eda-qa at disemia.com> writes:> I can't find a reference (LLVM or ABI specs) as to what restrictions > there are on symbol names (for functions and global variables). I want > to know what characters are allowed. For C exports I know I must stick > to the C format, but for symbols private to my libraries I can do > something else. Where might I find a reference for this?In my experience, the most restrictive part is the object format (ELF, COFF, etc.) LLVM proper is quite liberal on this regard. See http://llvm.org/docs/LangRef.html#identifiers
On 25 Jun 2013, at 06:21, Óscar Fuentes <ofv at wanadoo.es> wrote:> In my experience, the most restrictive part is the object format (ELF, > COFF, etc.)You may also encounter problems with the assembler, if you're not using the LLVM integrated assembler. I had problems in the past with the Darwin assembler being unable to handle certain non-alphanumeric characters. Binutils assemblers on various platforms also have limitations that tend not to be well documented. David
Seemingly Similar Threads
- [LLVMdev] How to deal with potentially unlimited count/length symbol names?
- [LLVMdev] UNREACHABLE executed at MCJIT.cpp:322!
- [LLVMdev] UNREACHABLE executed at MCJIT.cpp:322!
- [LLVMdev] How to deal with potentially unlimited count/length symbol names?
- [LLVMdev] UNREACHABLE executed at MCJIT.cpp:322!