about ELF format

Hi, all

I want to use LLVM to output a ELF object file as a library that can't be linked into IAR/Keil project. And the ELF file should include the debug information (eg. line numbers and symbol tables) that can't be read and processed in IAR/Keil IDE. How can I do it?

Thanks a lot.