[llvm-dev] ELF object writing from assembly file

Sky Flyer via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 19 02:13:05 PDT 2015

Hello Tim,

In the writeNopData, I changed the return value to true, and now everything
is fine!
Thanks a lot for your help.


On Thu, Oct 15, 2015 at 6:14 PM, Tim Northover <t.p.northover at gmail.com>

> On 15 October 2015 at 04:38, Sky Flyer <skylake007 at googlemail.com> wrote:
> > I am getting an error which says: "LLVM ERROR: unable to write nop
> sequence
> > of 0 bytes"
> Sounds like you need to implement "writeNopData" from the AsmBackend.
> > Is there any way that I can print out the Obj code (I mean bitstream
> > representation of the assembly code which is going to be placed in the
> > file), before making any ELF file?
> I think it's only really produced on demand while writing the ELF
> file. You might look at the output of "llc -debug", which shows some
> of the intermediate data structures, none of them are really just the
> instruction bits.
> Cheers.
> Tim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151019/064e6d81/attachment.html>

More information about the llvm-dev mailing list