Revert "Fix a nomenclature error in llvm-nm."
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Apr 2014 00:19:35 +0000 (00:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Apr 2014 00:19:35 +0000 (00:19 +0000)
commit14ae43449c7038afa8dced4f5cb054b243b67d76
tree6659e1b190721d56eecd7009b980780252028133
parent1498ceee9e14815f2103794980a4b4f63eee1a4c
Revert "Fix a nomenclature error in llvm-nm."

This reverts commit r205479.

It turns out that nm does use addresses, it is just that every reasonable
relocatable ELF object has sections with address 0. I have no idea if those
exist in reality, but it at least it shows that llvm-nm should use the name
address.

The added test was includes an unusual .o file with non 0 section addresses. I
created it by hacking ELFObjectWriter.cpp.

Really sorry for the churn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205493 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFObjectFile.h
lib/Object/COFFObjectFile.cpp
lib/Object/MachOObjectFile.cpp
test/Object/Inputs/relocatable-with-section-address.elf-x86-64 [new file with mode: 0644]
test/Object/nm-trivial-object.test
tools/llvm-nm/llvm-nm.cpp