search for: relocationtable

Displaying 13 results from an estimated 13 matches for "relocationtable".

2014 Jan 19
2
[LLVMdev] [lld] Relocation sections format: .rela / .rel
...; sections only. Mips requires to use the "rel" format. So we need to be able to select format and names of relocation section, names of symbols like __rela_iplt_* / __rel_iplt_*, dynamic table tag DT_RELA / DT_REL. My current idea: - Add two virtual functions DefaultLayout::createDynamicRelocationTable() and DefaultLayout::getPLTRelocationTable(). Call these functions when we need to create relocation tables. By default these function create .rela.* sections. - Override createDynamicRelocationTable() and getPLTRelocationTable() in the MipsTargetLayout to create .rel.* sections. - Add support for...
2014 Jan 19
0
[LLVMdev] [lld] Relocation sections format: .rela / .rel
...to use the "rel" format. So we need to be able to select format and > names of relocation section, names of symbols like __rela_iplt_* / > __rel_iplt_*, dynamic table tag DT_RELA / DT_REL. > > My current idea: > - Add two virtual functions > DefaultLayout::createDynamicRelocationTable() and > DefaultLayout::getPLTRelocationTable(). Call these functions when we > need to create relocation tables. By default these function create > .rela.* sections. > - Override createDynamicRelocationTable() and getPLTRelocationTable() > in the MipsTargetLayout to create .rel.* sec...
2013 Nov 13
3
[LLVMdev] (Very) small patch for the jit event listener
...really useful could be a mcjit that acts as a linker. If MCJIT could have a map like this (I give a pseudo-c++ code) class FnDescriptor { StringRef name; FunctionType fnType; LinkageType linkage; }; class FnState { llvm::Module* definedModule; /* maybe a llvm::ObjectImage* ? */ List<RelocationTable*>* users, void* currentPointer }; map<FnDescriptor, FnState> it could be really useful. Let's imagine the same scenario with f that calls g while g is not yet compiled. At the beginning of this scenario, "g" "void ()" could simply be associated to a FnState with...
2013 Nov 14
0
[LLVMdev] (Very) small patch for the jit event listener
...really useful could be a mcjit that acts as a linker. If MCJIT could have a map like this (I give a pseudo-c++ code) class FnDescriptor { StringRef name; FunctionType fnType; LinkageType linkage; }; class FnState { llvm::Module* definedModule; /* maybe a llvm::ObjectImage* ? */ List<RelocationTable*>* users, void* currentPointer }; map<FnDescriptor, FnState> it could be really useful. Let's imagine the same scenario with f that calls g while g is not yet compiled. At the beginning of this scenario, "g" "void ()" could simply be associated to a FnState with...
2013 Nov 14
2
[LLVMdev] (Very) small patch for the jit event listener
...If MCJIT could have a map like this (I give a pseudo-c++ code) > > class FnDescriptor { > StringRef name; > FunctionType fnType; > LinkageType linkage; > }; > > class FnState { > llvm::Module* definedModule; > /* maybe a llvm::ObjectImage* ? */ > List<RelocationTable*>* users, > void* currentPointer > }; > > map<FnDescriptor, FnState> > > it could be really useful. Let's imagine the same scenario with f that calls g while g is not yet compiled. At the beginning of this scenario, "g" "void ()" could simply be...
2013 Nov 14
0
[LLVMdev] (Very) small patch for the jit event listener
...gt; MCJIT could have a map like this (I give a pseudo-c++ code) > > class FnDescriptor { > StringRef name; > FunctionType fnType; > LinkageType linkage; > }; > > class FnState { > llvm::Module* definedModule; > /* maybe a llvm::ObjectImage* ? */ > List<RelocationTable*>* users, > void* currentPointer > }; > > map<FnDescriptor, FnState> > > it could be really useful. Let's imagine the same scenario with f that > calls g while g is not yet compiled. At the beginning of this > scenario, "g" "void ()" coul...
2013 Nov 16
2
[LLVMdev] (Very) small patch for the jit event listener
...a pseudo-c++ code) >> >> class FnDescriptor { >> StringRef name; >> FunctionType fnType; >> LinkageType linkage; >> }; >> >> class FnState { >> llvm::Module* definedModule; >> /* maybe a llvm::ObjectImage* ? */ >> List<RelocationTable*>* users, >> void* currentPointer >> }; >> >> map<FnDescriptor, FnState> >> >> it could be really useful. Let's imagine the same scenario with f that >> calls g while g is not yet compiled. At the beginning of this >> scenario, "g&...
2013 Nov 16
0
[LLVMdev] (Very) small patch for the jit event listener
...; class FnDescriptor { >>> StringRef name; >>> FunctionType fnType; >>> LinkageType linkage; >>> }; >>> >>> class FnState { >>> llvm::Module* definedModule; >>> /* maybe a llvm::ObjectImage* ? */ >>> List<RelocationTable*>* users, >>> void* currentPointer >>> }; >>> >>> map<FnDescriptor, FnState> >>> >>> it could be really useful. Let's imagine the same scenario with f that >>> calls g while g is not yet compiled. At the beginning of this...
2013 Nov 13
0
[LLVMdev] (Very) small patch for the jit event listener
Hi Andy, We had previous discussions about this, I'd like to state more exactly what features would make MCJIT a replacement for the JIT. After putting significant effort trying to move to MCJIT, I'm currently back with the JIT. This is in a REPL environment where functions are added and removed dynamically and response time is important. The issue is the legacy JIT provides great
2013 Nov 18
2
[LLVMdev] (Very) small patch for the jit event listener
...; class FnDescriptor { >>> StringRef name; >>> FunctionType fnType; >>> LinkageType linkage; >>> }; >>> >>> class FnState { >>> llvm::Module* definedModule; >>> /* maybe a llvm::ObjectImage* ? */ >>> List<RelocationTable*>* users, >>> void* currentPointer >>> }; >>> >>> map<FnDescriptor, FnState> >>> >>> it could be really useful. Let's imagine the same scenario with f >>> that calls g while g is not yet compiled. At the beginning of thi...
2013 Nov 19
0
[LLVMdev] (Very) small patch for the jit event listener
...gt; StringRef name; >>>> FunctionType fnType; >>>> LinkageType linkage; >>>> }; >>>> >>>> class FnState { >>>> llvm::Module* definedModule; >>>> /* maybe a llvm::ObjectImage* ? */ >>>> List<RelocationTable*>* users, >>>> void* currentPointer >>>> }; >>>> >>>> map<FnDescriptor, FnState> >>>> >>>> it could be really useful. Let's imagine the same scenario with f >>>> that calls g while g is not yet compil...
2013 Nov 19
1
[LLVMdev] (Very) small patch for the jit event listener
...gt; StringRef name; >>>> FunctionType fnType; >>>> LinkageType linkage; >>>> }; >>>> >>>> class FnState { >>>> llvm::Module* definedModule; >>>> /* maybe a llvm::ObjectImage* ? */ >>>> List<RelocationTable*>* users, >>>> void* currentPointer >>>> }; >>>> >>>> map<FnDescriptor, FnState> >>>> >>>> it could be really useful. Let's imagine the same scenario with f >>>> that calls g while g is not yet compi...
2013 Nov 13
3
[LLVMdev] (Very) small patch for the jit event listener
Hi Gaƫl, I'm not familiar enough with the details of the old JIT engine and its event interface to comment on whether or not your changes are appropriate, but I'm not sure anyone is so the patch is probably OK as is. I don't see any obvious problems with it. However, your description of the changes raises a bigger issue in my mind. I'm not sure if you are aware of this, but