<br><br><div class="gmail_quote">On Thu, Sep 20, 2012 at 10:15 AM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com" target="_blank">echristo@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"><br><div><div class="im"><div>On Sep 19, 2012, at 12:07 AM, Alexey Samsonov <<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>> wrote:</div><br><blockquote type="cite">
<div>Hi!</div><div><br></div><div><re-sending this patch in its own thread in case it got lost></div></blockquote><div><br></div></div><div>It did, apologies.</div><div class="im"><br><blockquote type="cite"><div>LLVM's Object library incorrectly calculates symbol addresses for ELF: in fact, symbol table entry has "value" field which</div>

<div>should be interpreted differently for different object types (relocated and relocatable).</div><div><br></div><div><div>This patch fixes llvm-nm output for executables and shared objects on Linux (addresses in symbol table are now correct).</div>

<div><br></div><div>Probably, the name SymbolRef::getAddress is somewhat confusing, and better naming would be smth like SymbolRef::getVirtualAddress,</div><div>but this renaming would touch all Object specializations and many users of this library (I have the patch that does this as well, though).</div>

</div><div><br></div><div>Code review: <a href="https://codereview.appspot.com/6532054/" target="_blank">https://codereview.appspot.com/6532054/</a></div></blockquote></div></div><br><div>LGTM.</div></div></blockquote><div>
<br></div><div>r164365, thanks! </div></div><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>