search for: objfil

Displaying 20 results from an estimated 37 matches for "objfil".

Did you mean: objfile
2017 Nov 13
4
How to objcopy via LLVM toolchain for armv7e-m ELF32LE?
Hi LLVM developers, As PR35281 mentioned: $ llvm-objcopy -O binary llvm-cortex-m7.elf llvm-cortex-m7.bin llvm-objcopy: 'llvm-cortex-m7.elf': The file was not recognized as a valid object file. if (ELFObjectFile<ELF64LE> *o = dyn_cast<ELFObjectFile<ELF64LE>>(&Binary)) https://github.com/llvm-mirror/llvm/blob/master/tools/llvm-objcopy/llvm-objcopy.cpp#L200
2018 Jul 25
2
LLD COFF library: crashes when lld::coff::link is called twice
...k(ZigLLVM_ObjectFormatType oformat, const char * * args, unsigned __int64 arg_count, Buf * diag) Line 435 C++ zig.exe!codegen_link(CodeGen * g, const char * out_file) Line 1020 C++ zig.exe!main(int argc, char * * argv) Line 909 C++ [External Code] It appears that in this code, ObjFile::Instance is garbage data: std::vector<Chunk *> SymbolTable::getChunks() { std::vector<Chunk *> Res; for (ObjFile *File : ObjFile::Instances) { ArrayRef<Chunk *> V = File->getChunks(); Res.insert(Res.end(), V.begin(), V.end()); } return Res; } When I go to th...
2018 Aug 08
2
LLD COFF library: crashes when lld::coff::link is called twice
...vm.org> wrote: > Here's a fix: > > --- a/lld/COFF/Driver.cpp > +++ b/lld/COFF/Driver.cpp > @@ -72,6 +72,9 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, > raw_ostream &Diag) { > exitLld(errorCount() ? 1 : 0); > > freeArena(); > + ObjFile::Instances.clear(); > + ImportFile::Instances.clear(); > + BitcodeFile::Instances.clear(); > return !errorCount(); > } > > I don't know how to make a test for this, since it depends on running LLD > twice in the same process. > > Can I get some assistance tryin...
2015 Jul 15
2
[LLVMdev] SymbolRef and getSize
...This is my code (at the end of the main function into driver.cpp) : #### ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(file); if (std::error_code ec = BinaryOrErr.getError()) { return ec.value(); } Binary &Binary = *BinaryOrErr.get().getBinary(); object::ObjectFile *objfile; objfile = dyn_cast<ObjectFile>(&Binary); for (const SymbolRef &Symbol : objfile->symbols()) { uint64_t size; Symbol.getAddress(size); } #### During my previous search, I check machODump.cpp in order to see of the list all the function. They never use the getSize() but the...
2018 Jun 07
2
[lld] ObjFile::createRegular is oblivious of PendingComdat
I encountered a segfault when using lld to cross-compile for Windows (+MinGW) from Linux. The problem happens with objects built by gcc. The problem is that ObjFile::CreateRegular considers a PendingComdat to be valid (and later causes an illegal pointer dereference). The following patch fixes the crash: diff --git a/COFF/InputFiles.cpp b/COFF/InputFiles.cpp index 9e2345b0a..f47d612df 100644 --- a/COFF/InputFiles.cpp +++ b/COFF/InputFiles.cpp @@ -229,11 +22...
2018 Jun 07
2
[lld] ObjFile::createRegular is oblivious of PendingComdat
...u, Jun 7, 2018 at 2:44 PM Pirama Arumuga Nainar via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> I encountered a segfault when using lld to cross-compile for Windows >> (+MinGW) from Linux. The problem happens with objects built by gcc. The >> problem is that ObjFile::CreateRegular considers a PendingComdat to be >> valid (and later causes an illegal pointer dereference). The following >> patch fixes the crash: >> >> diff --git a/COFF/InputFiles.cpp b/COFF/InputFiles.cpp >> index 9e2345b0a..f47d612df 100644 >> --- a/COFF/In...
2018 Apr 01
2
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
Hi Paul, How can i make this call to intrinsic from the c++ code ? I'm not working with the IR language, but directly in C++ with IRBuilder::CreateAlloca. My goal is that one : - Generate machine code with an instance of the class 'IRBuilder' - Emit 'ObjFile' class instance with MCJIT - Create a DwarfContext instance directly from the emitted ObjFile object (DwarfContextInMemory) (on JitEventListener::NotifyObjectEmitted) - Use this DwarfContext to step into my home made runtime debugger. Now I can perform step over/into/out in my debugger using...
2018 Apr 02
0
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
...t; Hi Paul, > How can i make this call to intrinsic from the c++ code ? > I'm not working with the IR language, but directly in C++ with > IRBuilder::CreateAlloca. > My goal is that one : > - Generate machine code with an instance of the class 'IRBuilder' > - Emit 'ObjFile' class instance with MCJIT > - Create a DwarfContext instance directly from the emitted ObjFile object > (DwarfContextInMemory) (on JitEventListener::NotifyObjectEmitted) > - Use this DwarfContext to step into my home made runtime debugger. > > Now I can perform step over/into/o...
2004 Jul 07
9
Windows 2K outperform Linux/Samba very much?
...System: Windows 2000 professional // ... Set objFSO = CreateObject("Scripting.FileSystemObject") thistime = thisnow If objFSO.FileExists(fn) Then totle = totle & "Check file time " & CStr(thisnow - thistime) + " ms" + vbCrLf thistime = thisnow Set objFile = objFSO.GetFile(fn) totle = totle & "Get object time " & CStr(thisnow - thistime) + " ms" + vbCrLf thistime = thisnow temp = DateValue(CStr(objFile.DateLastModified)) totle = totle & "Get date time " & CStr(thisnow - thistime) + " ms&quot...
2010 Apr 05
3
[LLVMdev] Linking with C Library
...vm.org/docs/tutorial/OCamlLangImpl7.html mentions it, but I don't know enough about the ocaml build process to say whether that'll work. I believe I'm already doing that, properly by passing -ccopt -rdynamic to ocamlopt: ocamlopt -cc g++ -ccopt -rdynamic -linkall $(LIBFILES) -o alpha $(OBJFILES) I've also tried writing a dummy "puts" function in a C file and linking that with my executable. nm -D then shows the following: 000000000054b690 T camlRuntime__rt_fputs_208 000000000054b590 T camlRuntime__rt_puts_198 U fputs 0000000000c43044 T puts However, LLV...
2010 Apr 06
0
[LLVMdev] Linking with C Library
...gImpl7.html > mentions it, but I don't know enough about the ocaml build process to > say whether that'll work. > > I believe I'm already doing that, properly by passing -ccopt -rdynamic to > ocamlopt: > ocamlopt -cc g++ -ccopt -rdynamic -linkall $(LIBFILES) -o alpha $(OBJFILES) > > I've also tried writing a dummy "puts" function in a C file and linking that > with my executable. nm -D then shows the following: > > 000000000054b690 T camlRuntime__rt_fputs_208 > 000000000054b590 T camlRuntime__rt_puts_198 >                 U fputs >...
2009 Jul 08
1
[LLVMdev] Preliminary patch for GDB support for JIT
...for the summer. One dumb way to approach it would be to push the ELF creation to the GDB side of the interface, and create the ELF there. That would clean up the interface and make it much nicer. But once you've done that, then it's probably just as much work to figure out the in memory objfile data structures and modify those directly. This was just the path that yielded results most quickly. >> I know this code is sketchy and preliminary, but it's useful for us, >> and I have plans to improve it: >> http://wiki.llvm.org/HowTo:_Tell_GDB_about_JITted_code > &gt...
2018 Apr 01
0
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
Binding the alloca to the debug-info metadata is not automatic. You need to emit an intrinsic function call to llvm.dbg.declare to bind the two together. If you are simply trying to emit DWARF for your program, the rest of the processing should already be in place for that. If you are trying to do something else, you would need to describe that so we understand what you need. --paulr From:
2018 Apr 23
0
llc tool followed by g++ : Abnormal behavior while compiling assembly to object file
Hi Mahesh, On 23 April 2018 at 10:51, Mahesh Attarde via llvm-dev <llvm-dev at lists.llvm.org> wrote: > movq .str at GOTPCREL(%rip),%rdi > movq .str.1 at GOTPCREL(%rip),%rsi That's quite strange. You wouldn't normally expect to access a constant string via the GOT. It looks like LLVM has decided to put the symbols in an odd section, so it'd be a good idea to make sure
2018 Mar 31
2
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
Hi, First, considering I'm using an IRBuilder and a DIBuilder to build my program, how can I automatically bind the CreateAlloca with my named local variable inside the DIBuilder ? Is it automatic with the Twine name of CreateAlloca ? And/Or should I use DIBuilder::createAutoVariable and how ? Then, I'm wondering how to locate back my local variable in memory (register or stack) once i
2018 Apr 23
2
llc tool followed by g++ : Abnormal behavior while compiling assembly to object file
Hi I am executing following steps to convert assembly to object code. llc -march=x86-64 -filetype=asm input.ll -o input.s g++ -g -c -o input.s --input.o inshort ll --> llc --> .s -->g++ -->obj original source was something like this { printf(" **** %s ****",str); } input.s turn out to be movq .str at GOTPCREL(%rip),%rdi movq .str.1 at GOTPCREL(%rip),%rsi xorl
2013 Jul 12
14
[LLVMdev] [Proposal] Parallelize post-IPO stage.
...od); + +private: + ModPartSchemeMgr &PartSchemeMgr; + IPOPartMgr &IPOPartMgr; + Module *MergedModule; + int NextPartId; +}; + +class PostIPOCompile { +public: + PostIPOCompile(IPOPartMgr &IPM, IPOFileMgr &IFM, bool ToMergeObjs = false) : + PartMgr(IPM), FileMgr(IFM), MergedObjFile(0), MergeObjs(ToMergeObjs) {} + + IPOFile *getMergedObjFile() const { return MergedObjFile; } + + bool Compile(std::string &ErrMsg); + +private: + bool generateMakefile(std::string &ErrMsg); + +private: + IPOPartMgr &PartMgr; + IPOFileMgr &FileMgr; + IPOFile *MergedObjFile; +...
2006 May 20
2
[LLVMdev] cannot find gccas
I have installed the llvm-gcc , and there is no error during the installtion.I also have compiled the llvm successfully.But when I use this command $ llvm-gcc hello.c -o hello something wrong has happened,and this is the error information: llvm-gcc: installation problem, cannot exec `gccas': No such file or directory. what shall I do? My linux vertion is fedora 4.0 and the gcc vertion is
2009 Jul 08
0
[LLVMdev] Preliminary patch for GDB support for JIT
On Wed, Jul 8, 2009 at 11:41 AM, Reid Kleckner<rnk at mit.edu> wrote: > Right now, GDB has no way to be told about JITed code.  I'm working on > adding such an interface, and the LLVM JIT would be the first client. Have you considered how this might be made to work for embedded targets where remote debugging is required? deep
2019 Mar 14
3
RFC: ELF Autolinking
On Thu, Mar 14, 2019 at 9:28 AM Reid Kleckner via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi, > > I guess I agree it would be best to remove the objfile linker option > support and replace it with just auto-linking. We already have a mechanism > for adding new features to object files: .note sections. Linkers already > know to ignore ones that they don't understand. If, in the future, we want > to add a new feature that could be ha...