Kenneth Uildriks
2009-Jul-20 13:37 UTC
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
I'm running into a completely different problem. When I do: opt -load LowerFastInvoke.o -help I get the message: Error opening 'LowerFastInvoke.o': LowerFastInvoke.o: only ET_DYN and ET_EXEC can be loaded? Am I missing something?
Eli Friedman
2009-Jul-20 14:00 UTC
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
On Mon, Jul 20, 2009 at 6:37 AM, Kenneth Uildriks<kennethuil at gmail.com> wrote:> I'm running into a completely different problem. When I do: > > opt -load LowerFastInvoke.o -help > > I get the message: > > Error opening 'LowerFastInvoke.o': LowerFastInvoke.o: only ET_DYN and > ET_EXEC can be loaded? > > Am I missing something?Assuming the extension is right, you're trying to load an object file, which isn't allowed; you have to link it first. -Eli
Kenneth Uildriks
2009-Jul-20 14:18 UTC
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
Oops. Thanks... I totally missed that. On Mon, Jul 20, 2009 at 9:00 AM, Eli Friedman<eli.friedman at gmail.com> wrote:> On Mon, Jul 20, 2009 at 6:37 AM, Kenneth Uildriks<kennethuil at gmail.com> wrote: >> I'm running into a completely different problem. When I do: >> >> opt -load LowerFastInvoke.o -help >> >> I get the message: >> >> Error opening 'LowerFastInvoke.o': LowerFastInvoke.o: only ET_DYN and >> ET_EXEC can be loaded? >> >> Am I missing something? > > Assuming the extension is right, you're trying to load an object file, > which isn't allowed; you have to link it first. > > -Eli > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Apparently Analagous Threads
- [LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
- [LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
- [LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
- [LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
- Why -pie option force LLD to output shared obj file type, not executable?