<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
One more thing to follow up:<br>
<br>
Does the <b>opt -load</b> option only allow a shared object file (.so)
?<br>
Is it possible to have a normal library as well (e.g., .a file)?<br>
I am asking because current Cygwin build doesn't seem to
generate/support .so/.dll files?<br>
<br>
Have anybody tried and succeed in writing an individual pass on Cygwin
and managed to get loaded to run from "opt -load" option?<br>
<br>
Thank you<br>
<br>
Chuck<br>
<br>
Kenneth Uildriks wrote:
<blockquote
cite="mid:400d33ea0907200718t4b8fee1dg4e7151700838753c@mail.gmail.com"
type="cite">
<pre wrap="">Oops. Thanks... I totally missed that.
On Mon, Jul 20, 2009 at 9:00 AM, Eli Friedman<a class="moz-txt-link-rfc2396E" href="mailto:eli.friedman@gmail.com"><eli.friedman@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Mon, Jul 20, 2009 at 6:37 AM, Kenneth Uildriks<a class="moz-txt-link-rfc2396E" href="mailto:kennethuil@gmail.com"><kennethuil@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>