<div>Hi!</div><div><br></div><div><re-sending this patch in its own thread in case it got lost></div><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><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>