<div dir="ltr">Works great, thanks!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 5, 2014 at 4:18 PM, Juergen Ributzka <span dir="ltr"><<a href="mailto:juergen@apple.com" target="_blank">juergen@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Kevin,</div><div><br></div><div>I talked with Lang and he recommended to use an 8 byte location for the function address to also support the large code model. I updated the size, location and alignment of several entries in the stackmap in the attached patch.</div>

<div><br></div><div>Could you please try if this fixes everything on the ELF side too?</div><div><br></div><div>Thanks</div><div><br></div><div>Cheers,</div><div>Juergen </div><div><br></div><div></div></div>
<br><div style="word-wrap:break-word"><div></div><br><div><div>On Feb 4, 2014, at 8:19 PM, Kevin Modzelewski <<a href="mailto:kmod@dropbox.com" target="_blank">kmod@dropbox.com</a>> wrote:</div><br><blockquote type="cite">

<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Hi, I'm having some trouble with this commit: I can't load the stackmap section since these stack-size entries contain 32-bit relocations for 64-bit addresses:</span><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

<font face="courier new, monospace">RuntimeDyldELF.cpp:277: void llvm::RuntimeDyldELF::resolveX86_64Relocation(const llvm::SectionEntry&, uint64_t, uint64_t, uint32_t, int64_t, uint64_t): Assertion `(Type == ELF::R_X86_64_32 && (Value <= (4294967295U))) || (Type == ELF::R_X86_64_32S && ((int64_t)Value <= (2147483647) && (int64_t)Value >= (-2147483647-1)))' failed.</font><br>

</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

<br></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

I'm not sure how much of this is due to different object file formats; I'm getting this error on top of my patch for enabling stackmaps on ELF, and I'm not sure if the behavior is the same as MachO.  I'm also not sure how to produce a test for this since the relevant crash happens during loading, which isn't covered by running the bitcode through llc.</div>

<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

<br></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

I was able to work around this by either changing the Function Offset field to be 8-bytes, or by changing the stackmap section to not have the ELF::SHF_ALLOC flag set (though I think this also disables allocating it through the MemoryManager).  But again I'm not sure if it's maybe just a bug in the ELF support since that hasn't been accepted yet; I'm curious why I'm running into this but you guys aren't.</div>

<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

<br></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

Kevin</div></blockquote></div><br></div><br></blockquote></div><br></div>