Displaying 6 results from an estimated 6 matches for "initsections".
2016 May 21
1
Using an MCStreamer Directly to produce an object file?
...y files? Some examples showing how to make this
work would _really_ make my week.
This has been hard to debug, as I don't get any errors, just an empty
output .o file...
I was thinking it may be because of section issues, so I did add some
initial sections, hoping that might help:
Str->InitSections(false);
MCSection *textsect = Ctx.getELFSection(".text", ELF::SHT_PROGBITS,
ELF::SHF_EXECINSTR | ELF::SHF_ALLOC);
Str->SwitchSection(textsect);
This did not seem to help at all. I'm running out of ideas. Anyone
know how to use an MCStreamer object directly to make and objec...
2012 Dec 16
0
[LLVMdev] [llvm] r170280 - /llvm/trunk/lib/MC/MCPureStreamer.cpp
...r1=170279&r2=170280&view=diff
> ==============================================================================
> --- llvm/trunk/lib/MC/MCPureStreamer.cpp (original)
> +++ llvm/trunk/lib/MC/MCPureStreamer.cpp Sat Dec 15 22:23:20 2012
> @@ -37,7 +37,6 @@
>
> virtual void InitSections();
> virtual void EmitLabel(MCSymbol *Symbol);
> - virtual void EmitDebugLabel(MCSymbol *Symbol);
> virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
> uint64_t Size = 0, unsigned ByteAlignment = 0);
> virtual void Em...
2012 Dec 16
0
[LLVMdev] [llvm] r170280 - /llvm/trunk/lib/MC/MCPureStreamer.cpp
...r1=170279&r2=170280&view=diff
> ==============================================================================
> --- llvm/trunk/lib/MC/MCPureStreamer.cpp (original)
> +++ llvm/trunk/lib/MC/MCPureStreamer.cpp Sat Dec 15 22:23:20 2012
> @@ -37,7 +37,6 @@
>
> virtual void InitSections();
> virtual void EmitLabel(MCSymbol *Symbol);
> - virtual void EmitDebugLabel(MCSymbol *Symbol);
> virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
> uint64_t Size = 0, unsigned ByteAlignment = 0);
> virtual void Em...
2015 Aug 02
2
[LLVMdev] Unable to generate obj file using llc for bpf
Dear there,
I wasn't able to generate obj file for bpf using llc:
llc -march bpf -filetype=obj foo.bc
Anyone knows what is the missing part in their backend? I want to make it
work for my project.
Thanks,
Xiaochu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150802/e0b55467/attachment.html>
2015 Aug 03
2
[LLVMdev] Unable to generate obj file using llc for bpf
...0104dcecdb (anonymous
namespace)::MCMachOStreamer::ChangeSection(llvm::MCSection*, llvm::MCExpr
const*) + 75
11 llc 0x0000000104de9c2d
llvm::MCStreamer::SwitchSection(llvm::MCSection*, llvm::MCExpr const*) + 797
12 llc 0x0000000104de5300
llvm::MCStreamer::InitSections(bool) + 80
13 llc 0x00000001044f02b6
llvm::AsmPrinter::doInitialization(llvm::Module&) + 182
14 llc 0x0000000104c5e683
llvm::FPPassManager::doInitialization(llvm::Module&) + 99
15 llc 0x0000000104c5ee65 (anonymous
namespace):...
2016 May 23
0
Using an MCStreamer Directly to produce an object file?