<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/31/2015 06:03 PM, Hayden
Livingston wrote:<br>
</div>
<blockquote
cite="mid:CAMxMwyJsi4dT7Wc8bMH2fn2O1agU7bKcr71jzJ3WPob61LSuUw@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks, Philip. I have a sinking feeling it's not
your change, but could you share the commit and so I can try it
out locally?
<div><br>
</div>
<div>Bug: <a moz-do-not-send="true"
href="https://llvm.org/bugs/show_bug.cgi?id=23095">https://llvm.org/bugs/show_bug.cgi?id=23095</a><br>
</div>
<div><br>
</div>
<div>The reason I think it is not your change is because I tried
a shared library build of LLVM 3.5.1 and that also failed with
this error. </div>
</div>
</blockquote>
By recent, I had meant all my changes in this area over the last six
months or so. Given that, it's entirely possible something got into
3.5.1. I honestly haven't been tracking the releases closely. <br>
<blockquote
cite="mid:CAMxMwyJsi4dT7Wc8bMH2fn2O1agU7bKcr71jzJ3WPob61LSuUw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Maybe it is because I'm using a package that makes an LLVM
DLL for Windows.</div>
<div><br>
</div>
<div>The only reason why it show that error is if the static
constructor for it didn't run, right? And I don't know why it
would not run.</div>
</div>
</blockquote>
I need to take a closer look at your bug report before I can really
comment. I'm about to do that, but it's worth commenting that the
shadow stack GC appears to be working normally on a recent linux
build. I ran it on a recent build snapshot from the 26th of March I
happened to have lying around. Here's the test code I used:<br>
<br>
declare void @foo()<br>
<br>
declare void @llvm.gcroot(i8**, i8*)<br>
<br>
define void @test(i8* %ptr) gc "shadow-stack" {<br>
%slot = alloca i8*<br>
call void @llvm.gcroot(i8** %slot, i8* null)<br>
store i8* %ptr, i8** %slot<br>
call void @foo()<br>
%ptr2 = load i8*, i8** %slot<br>
store i8 0, i8* %ptr2<br>
ret void<br>
}<br>
<br>
<br>
<blockquote
cite="mid:CAMxMwyJsi4dT7Wc8bMH2fn2O1agU7bKcr71jzJ3WPob61LSuUw@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Mar 31, 2015 at 5:29 PM, Philip
Reames <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:listmail@philipreames.com" target="_blank">listmail@philipreames.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Most likely a mistake
in one of my recent patches. Can you file a bug with a
test case? I'll try to get this fixed quickly.<br>
<br>
Philip<span class=""><br>
<br>
<div>On 03/31/2015 01:42 AM, Hayden Livingston wrote:<br>
</div>
</span>
<blockquote type="cite"><span class="">
<div dir="ltr">I'm getting an error while using a
trivial example by just setting a function's gc to
shadow-stack.
<div><br>
</div>
<div>Does anybody know why this could be happening?</div>
</div>
<br>
<fieldset></fieldset>
<br>
</span>
<pre>_______________________________________________
LLVM Developers mailing list
<a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a moz-do-not-send="true" href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a>
<a moz-do-not-send="true" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>