[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
In the writeNopData, I changed the return value to true, and now everything
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
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev