<div dir="ltr">A small repro:<div><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace"><b>$ cat q.c</b></font></div><div><font face="courier new, monospace">void a1();</font></div>
<div><font face="courier new, monospace">void a2() __attribute__((alias("a1")));</font></div><div><font face="courier new, monospace">void a3() __attribute__((alias("a2")));</font></div><div><font face="courier new, monospace">int qqq(int a) { return a * a; }</font></div>
<div><font face="courier new, monospace">void a1() {}</font></div><div><div><font face="courier new, monospace"><br></font></div></div><div><div><font face="courier new, monospace"><b>$ clang-bad -c q.c && objdump -t q.o</b></font></div>
</div><div><div><font face="courier new, monospace"><br></font></div></div><div><div><font face="courier new, monospace">q.o: file format elf64-x86-64</font></div></div><div><div><font face="courier new, monospace"><br>
</font></div></div><div><div><font face="courier new, monospace">SYMBOL TABLE:</font></div></div><div><div><font face="courier new, monospace">0000000000000000 l df *ABS* 0000000000000000 q.c</font></div></div><div><div>
<font face="courier new, monospace">0000000000000000 l d .text 0000000000000000 .text</font></div></div><div><div><font face="courier new, monospace">0000000000000000 l d .data 0000000000000000 .data</font></div>
</div><div><div><font face="courier new, monospace">0000000000000000 l d .bss 0000000000000000 .bss</font></div></div><div><div><font face="courier new, monospace">0000000000000000 l d .comment 0000000000000000 .comment</font></div>
</div><div><div><font face="courier new, monospace">0000000000000000 l d .note.GNU-stack 0000000000000000 .note.GNU-stack</font></div></div><div><div><font face="courier new, monospace">0000000000000000 l d .eh_frame 0000000000000000 .eh_frame</font></div>
</div><div><div><font face="courier new, monospace">0000000000000020 g F .text 0000000000000006 a1</font></div></div><div><div><font face="courier new, monospace">0000000000000020 g F .text 0000000000000006 a2</font></div>
</div><div><div><font face="courier new, monospace" color="#ff0000"><b>0000000000000000 g F .text 0000000000000006 a3</b></font></div></div><div><div><font face="courier new, monospace">0000000000000000 g F .text 0000000000000012 qqq</font></div>
</div><div><font face="courier new, monospace"><br></font></div><div><div><font face="courier new, monospace"><b>$ clang-good -c q.c && objdump -t q.o</b></font></div></div><div><div><font face="courier new, monospace"><br>
</font></div></div><div><div><font face="courier new, monospace">q.o: file format elf64-x86-64</font></div></div><div><div><font face="courier new, monospace"><br></font></div></div><div><div><font face="courier new, monospace">SYMBOL TABLE:</font></div>
</div><div><div><font face="courier new, monospace">0000000000000000 l df *ABS* 0000000000000000 q.c</font></div></div><div><div><font face="courier new, monospace">0000000000000000 l d .text 0000000000000000 .text</font></div>
</div><div><div><font face="courier new, monospace">0000000000000000 l d .data 0000000000000000 .data</font></div></div><div><div><font face="courier new, monospace">0000000000000000 l d .bss 0000000000000000 .bss</font></div>
</div><div><div><font face="courier new, monospace">0000000000000000 l d .comment 0000000000000000 .comment</font></div></div><div><div><font face="courier new, monospace">0000000000000000 l d .note.GNU-stack 0000000000000000 .note.GNU-stack</font></div>
</div><div><div><font face="courier new, monospace">0000000000000000 l d .eh_frame 0000000000000000 .eh_frame</font></div></div><div><div><font face="courier new, monospace">0000000000000020 g F .text 0000000000000006 a1</font></div>
</div><div><div><font face="courier new, monospace">0000000000000020 g F .text 0000000000000006 a2</font></div></div><div><div><font face="courier new, monospace"><b>0000000000000020 g F .text 0000000000000006 a3</b></font></div>
</div><div><div><font face="courier new, monospace">0000000000000000 g F .text 0000000000000012 qqq</font></div></div></blockquote><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Mar 19, 2014 at 12:32 AM, Alexander Kornienko <span dir="ltr"><<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.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">Got it: the same situation. Symbol is correctly marked as function, but the offset is 0. Do you need a test?</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Mar 19, 2014 at 12:10 AM, Alexander Kornienko <span dir="ltr"><<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.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"><div class="gmail_extra"><div class="gmail_quote"><div><div>On Wed, Mar 19, 2014 at 12:08 AM, 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"><div>On 18 March 2014 16:06, Alexander Kornienko <<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.com</a>> wrote:<br>
> And it again breaks something for us. I assume, it's also related to<br>
> aliases, but it will take some time to figure out what exactly.<br>
<br>
</div>Is it something I can reproduce locally?<br></blockquote><div><br></div></div></div><div>I'm working on a compact repro.</div></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div><font color="#666666"><span style="border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(213,15,37);border-right-color:rgb(213,15,37);border-bottom-color:rgb(213,15,37);border-left-color:rgb(213,15,37);padding-top:2px;margin-top:2px">Alexander Kornienko |</span><span style="border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(51,105,232);border-right-color:rgb(51,105,232);border-bottom-color:rgb(51,105,232);border-left-color:rgb(51,105,232);padding-top:2px;margin-top:2px"> Software Engineer |</span></font><span style="border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(0,153,57);border-right-color:rgb(0,153,57);border-bottom-color:rgb(0,153,57);border-left-color:rgb(0,153,57);padding-top:2px;margin-top:2px"><font color="#666666"> </font><a href="mailto:alexfh@google.com" style="color:rgb(17,85,204)" target="_blank">alexfh@google.com</a> |</span><span style="border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(238,178,17);border-right-color:rgb(238,178,17);border-bottom-color:rgb(238,178,17);border-left-color:rgb(238,178,17);padding-top:2px;margin-top:2px"> <a value="+35315435283" style="color:rgb(17,85,204)">+49 151 221 77 957</a></span></div>
</div><div><font color="#666666"><span style="font-family:Arial,Verdana,sans-serif">Google Germany GmbH | </span><span style="font-family:Arial,Verdana,sans-serif">Dienerstr. 12 | </span><span style="font-family:Arial,Verdana,sans-serif">80331 München</span></font></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div><font color="#666666"><span style="border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(213,15,37);border-right-color:rgb(213,15,37);border-bottom-color:rgb(213,15,37);border-left-color:rgb(213,15,37);padding-top:2px;margin-top:2px">Alexander Kornienko |</span><span style="border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(51,105,232);border-right-color:rgb(51,105,232);border-bottom-color:rgb(51,105,232);border-left-color:rgb(51,105,232);padding-top:2px;margin-top:2px"> Software Engineer |</span></font><span style="border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(0,153,57);border-right-color:rgb(0,153,57);border-bottom-color:rgb(0,153,57);border-left-color:rgb(0,153,57);padding-top:2px;margin-top:2px"><font color="#666666"> </font><a href="mailto:alexfh@google.com" style="color:rgb(17,85,204)" target="_blank">alexfh@google.com</a> |</span><span style="border-top-width:2px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(238,178,17);border-right-color:rgb(238,178,17);border-bottom-color:rgb(238,178,17);border-left-color:rgb(238,178,17);padding-top:2px;margin-top:2px"> <a value="+35315435283" style="color:rgb(17,85,204)">+49 151 221 77 957</a></span></div>
</div><div><font color="#666666"><span style="background-color:rgb(255,255,255);font-family:Arial,Verdana,sans-serif">Google Germany GmbH | </span><span style="background-color:rgb(255,255,255);font-family:Arial,Verdana,sans-serif">Dienerstr. 12 | </span><span style="background-color:rgb(255,255,255);font-family:Arial,Verdana,sans-serif">80331 München</span></font></div>
</div>