<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 19, 2012, at 12:07 AM, Alexey Samsonov <<a href="mailto:samsonov@google.com">samsonov@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><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>It did, apologies.</div><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/">https://codereview.appspot.com/6532054/</a></div></blockquote></div><br><div>LGTM.</div><div><br></div><div>-eric</div></body></html>