[COFF] Return symbol VAs instead of RVAs for PE files
authorReid Kleckner <reid@kleckner.net>
Fri, 31 Jul 2015 16:14:22 +0000 (16:14 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 31 Jul 2015 16:14:22 +0000 (16:14 +0000)
commitc136e5507a3f3d0a35e83c9db99c6081735aa5a0
tree8a6c4bca134ec16c6bd66738c92ec3994a4947f8
parent0dd663b59840f18220a9092f12c653f3ebcb5251
[COFF] Return symbol VAs instead of RVAs for PE files

This makes llvm-nm consistent with binutils nm on executables and DLLs.
For a vanilla hello world executable, the address of main should include
the default image base of 0x400000.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243755 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/COFFObjectFile.cpp
test/Object/Inputs/main-ret-zero-pe-i386.dll [new file with mode: 0755]
test/Object/Inputs/main-ret-zero-pe-i386.exe [new file with mode: 0755]
test/Object/nm-pe-image.test [new file with mode: 0644]