search for: writenopdata

Displaying 5 results from an estimated 5 matches for "writenopdata".

2014 Sep 17
2
[LLVMdev] writeNopData and non-instructions in .text
Hi all, all ELF platforms at least and likely all others too allow something like the following: .text .asciz "arbitrary long string" .p2align 3 Depending on the size of the string, MCAsmBackend::writeNopData is called to pad text. For x86 and other backends with byte-sized instructions, this is no problem. Some backends like ARM and PPC flush explicitly to 16bit/32bit boundaries. There is an interested question on whether the non-instructions should be leading or trailing -- I think the behavior in ARM...
2015 Oct 15
2
ELF object writing from assembly file
Thanks a lot Tim. I am getting an error which says: "LLVM ERROR: unable to write nop sequence of 0 bytes" 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 ELF file), before making any ELF file? Cheers, ES On Tue, Oct 13, 2015 at 3:02 PM, Tim Northover <t.p.northover at gmail.com> wrote:
2013 Nov 03
2
[LLVMdev] [PATCH] Do not generate nopl instruction on CPUs that don't support it.
...cpp =================================================================== --- llvm.orig/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp 2013-11-03 00:24:20.000000000 +0100 +++ llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp 2013-11-03 20:57:14.000000000 +0100 @@ -309,7 +309,10 @@ bool X86AsmBackend::writeNopData(uint64_ // This CPU doesnt support long nops. If needed add more. // FIXME: Can we get this from the subtarget somehow? if (CPU == "generic" || CPU == "i386" || CPU == "i486" || CPU == "i586" || - CPU == "pentium" || CPU == "penti...
2013 Nov 05
0
[LLVMdev] [PATCH] Do not generate nopl instruction on CPUs that don't support it.
...=================================================== > --- llvm.orig/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp 2013-11-03 00:24:20.000000000 +0100 > +++ llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp 2013-11-03 20:57:14.000000000 +0100 > @@ -309,7 +309,10 @@ bool X86AsmBackend::writeNopData(uint64_ > // This CPU doesnt support long nops. If needed add more. > // FIXME: Can we get this from the subtarget somehow? > if (CPU == "generic" || CPU == "i386" || CPU == "i486" || CPU == "i586" || > - CPU == "pentium" |...
2013 Nov 07
2
[LLVMdev] [PATCH] Do not generate nopl instruction on CPUs that don't support it.
...==================================== > > --- llvm.orig/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp 2013-11-03 00:24:20.000000000 +0100 > > +++ llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp 2013-11-03 20:57:14.000000000 +0100 > > @@ -309,7 +309,10 @@ bool X86AsmBackend::writeNopData(uint64_ > > // This CPU doesnt support long nops. If needed add more. > > // FIXME: Can we get this from the subtarget somehow? > > if (CPU == "generic" || CPU == "i386" || CPU == "i486" || CPU == "i586" || > > - CPU == &...