<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 11, 2013 at 2:17 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">After spending some time figuring out what the actual restrictions ELF<br>
puts on alias I think this new patch is correct.<br>
<br>
What the previous one was getting wrong is that sometimes it would<br>
output just the base destructor. If we are using aliases and<br>
implementing weak functions with comdats, we have to make sure every<br>
translation unit emits comdats with the same symbols. If we don't, the<br>
linker can decide to keep a copy that has only the base destructor and<br>
the link gets an undefined reference to the complete destructor.<br>
<br>
I have tested the patch by using a patched clang to build a debug<br>
version of clang.<br></blockquote><div><br></div><div>Since you've got it setup, have you run this against the GDB 7.5 test suite?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Cheers,<br>
Rafael<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div></div>