<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Russel, I guess you're using ORC? Then you need a mapping layer.
Have a look at this line:<br>
<a class="moz-txt-link-freetext" href="https://github.com/weliveindetail/JitFromScratch/blob/example/own-externals/JitFromScratch.cpp#L38">https://github.com/weliveindetail/JitFromScratch/blob/example/own-externals/JitFromScratch.cpp#L38</a><br>
<br>
Best,<br>
Stefan<br>
<br>
<div class="moz-cite-prefix">Am 02.04.16 um 11:43 schrieb Russell
Wallace via llvm-dev:<br>
</div>
<blockquote
cite="mid:CAH+nB+y4jLnH0583WteWiCqWpwGr0wAUzTof9Q6=1M6mFu-tsQ@mail.gmail.com"
type="cite">
<div dir="ltr">Tried that, still didn't work. Then I tried making
a direct API call,
<div><br>
</div>
<div>GetProcAddress(GetModuleHandle(0),"foo")<br>
</div>
<div><br>
</div>
<div>And this works if and only if __declspec(dllexport) is
supplied. So it looks like we were both right.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Apr 2, 2016 at 9:29 AM,
NAKAMURA Takumi <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Have you tried to add dllexport?</div>
<br>
<div class="gmail_quote">
<div>
<div class="h5">
<div dir="ltr">On Sat, Apr 2, 2016 at 4:23 PM Russell
Wallace via llvm-dev <<a moz-do-not-send="true"
href="mailto:llvm-dev@lists.llvm.org"
target="_blank">llvm-dev@lists.llvm.org</a>>
wrote:<br>
</div>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div dir="ltr">I've finally managed to extract from
Kaleidoscope one particular thing that it seems to
me should be working and isn't. Given the global
declaration
<div><br>
</div>
<div>
<div>extern "C" void foo() {}</div>
</div>
<div><br>
</div>
<div>within the same program I have</div>
<div><br>
</div>
<div>RTDyldMemoryManager::getSymbolAddressInProcess("foo")<br>
</div>
<div><br>
</div>
<div>And it's returning null. (LLVM 3.8, Windows 7
x64.) What am I missing?</div>
</div>
</div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a moz-do-not-send="true"
href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a moz-do-not-send="true"
href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev"
rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>