[llvm-dev] ELF object writing from assembly file

Sky Flyer via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 13 02:21:31 PDT 2015


(corrector) I think for reading obj file it should be:
*llvm-readobj -arch=test  a.o*

On Tue, Oct 13, 2015 at 11:19 AM, Sky Flyer <skylake007 at googlemail.com>
wrote:

> Hi all,
>
> I have implemented AsmParser, CodeEmitter, and ELF object writing.
> AsmParser and CodeEmitter are tested and working fine, but I would like to
> see ELF objects build out of a parsed asm file. Is that possible?
>
> I tried this commands, but it didn't work corrctly:
>
> *llvm-mc -filetype=obj -arch=test file.s -o=a.o*
>
> and I think after an obj file is built, I should use this command but I am
> not sure!
>
> *llvm-objdump -arch=test a.o*
>
> Cheers,
> ES
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151013/0b97d992/attachment.html>


More information about the llvm-dev mailing list