aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Object/objdump-symbol-table.test
AgeCommit message (Collapse)AuthorFilesLines
2015-06-23objdump: Don't print a (always 0) size for MachO symbols.Rafael Espindola1-3/+3
Only common symbol on MachO and COFF have a size. For COFF we already had a custom format. For MachO, there is no native objdump and we were printing it as ELF. Now we only print the sizes for symbols that actually have them. llvm-svn: 240422
2015-05-22Stop inventing symbol sizes.Rafael Espindola1-1/+1
MachO and COFF quite reasonably only define the size for common symbols. We used to try to figure out the "size" by computing the gap from one symbol to the next. This would not be correct in general, since a part of a section can belong to no visible symbol (padding, private globals). It was also really expensive, since we would walk every symbol to find the size of one. If a caller really wants this, it can sort all the symbols once and get all the gaps ("size") in O(n log n) instead of O(n^2). On MachO this also has the advantage of centralizing all the checks for an invalid n_sect. llvm-svn: 238028
2015-04-30[Object] Teach Object and llvm-objdump about ".hidden"Davide Italiano1-0/+2
Differential Revision: http://reviews.llvm.org/D9416 Reviewed by: rafael llvm-svn: 236279
2012-09-21Fix SymbolRef::getAddress implementation for ELF. The 'value' field in ↵Alexey Samsonov1-0/+8
symbol table entry should be treated differently for relocatable and relocated files. This patch fixes symbol addresses printed by llvm-nm for executables and shared objects. llvm-svn: 164365
2012-08-02Move test yaml files under Inputs until they are converted to be the actualMatt Beaumont-Gay1-2/+2
test files. llvm-svn: 161219
2012-08-02Add yaml2obj. A utility to convert YAML to binaries.Michael J. Spencer1-3/+3
yaml2obj takes a textual description of an object file in YAML format and outputs the binary equivalent. This greatly simplifies writing tests that take binary object files as input. llvm-svn: 161205
2011-11-29Fixed ObjectFile functions:Danil Malyshev1-0/+8
- getSymbolOffset() renamed as getSymbolFileOffset() - getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile. - added getRelocationOffset() - fixed MachOObjectFile::getSymbolSize() - fixed MachOObjectFile::getSymbolSection() - fixed MachOObjectFile::getSymbolOffset() for symbols without section data. llvm-svn: 145408
2011-10-31Change the actual tests to match the input directory rename (duh)Matt Beaumont-Gay1-2/+2
llvm-svn: 143404
2011-10-18llvm-objdump: Add static symbol table dumping.Michael J. Spencer1-4/+2
llvm-svn: 142404
2011-10-18Revert "llvm-objdump: Add static symbol table dumping."Michael J. Spencer1-2/+4
This reverts commit 0c30d4e4f5f9110c5a67bd0ca84444dc58697596. llvm-svn: 142320
2011-10-17llvm-objdump: Add static symbol table dumping.Michael J. Spencer1-4/+2
llvm-svn: 142319
2011-10-17llvm-objdump: Add tests.Michael J. Spencer1-0/+27
llvm-svn: 142198