[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
czhao at eecg.toronto.edu
Mon Jul 20 07:32:05 PDT 2009
One more thing to follow up:
Does the *opt -load* option only allow a shared object file (.so) ?
Is it possible to have a normal library as well (e.g., .a file)?
I am asking because current Cygwin build doesn't seem to
generate/support .so/.dll files?
Have anybody tried and succeed in writing an individual pass on Cygwin
and managed to get loaded to run from "opt -load" option?
Kenneth Uildriks wrote:
> 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.
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev