summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/objdump-symbol-table.test
Commit message (Collapse)AuthorAgeFilesLines
* [llvm\test\Object] - An initial step to cleanup the test cases.George Rimar2019-07-081-43/+86
| | | | | | | | | | | | This patch removes trivial-object-test.elf-i386, trivial-object-test.elf-x86-64 and trivial-object-test2.elf-x86-64 precompiled objects from test/Object/Inputs folder. I adjusted the existent test cases to use YAML instead. Differential revision: https://reviews.llvm.org/D64206 llvm-svn: 365348
* [llvm][test] Update tests using objdumpKristina Brooks2018-11-111-3/+3
| | | | | | | | | Update tests using llvm-objdump since check strings don't match anymore due to the extra `O` in place. This is a followup for rL346610. llvm-svn: 346611
* objdump: Don't print a (always 0) size for MachO symbols.Rafael Espindola2015-06-231-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
* Stop inventing symbol sizes.Rafael Espindola2015-05-221-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
* [Object] Teach Object and llvm-objdump about ".hidden"Davide Italiano2015-04-301-0/+2
| | | | | | | Differential Revision: http://reviews.llvm.org/D9416 Reviewed by: rafael llvm-svn: 236279
* Fix SymbolRef::getAddress implementation for ELF. The 'value' field in ↵Alexey Samsonov2012-09-211-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
* Move test yaml files under Inputs until they are converted to be the actualMatt Beaumont-Gay2012-08-021-2/+2
| | | | | | test files. llvm-svn: 161219
* Add yaml2obj. A utility to convert YAML to binaries.Michael J. Spencer2012-08-021-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
* Fixed ObjectFile functions:Danil Malyshev2011-11-291-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
* Change the actual tests to match the input directory rename (duh)Matt Beaumont-Gay2011-10-311-2/+2
| | | | llvm-svn: 143404
* llvm-objdump: Add static symbol table dumping.Michael J. Spencer2011-10-181-4/+2
| | | | llvm-svn: 142404
* Revert "llvm-objdump: Add static symbol table dumping."Michael J. Spencer2011-10-181-2/+4
| | | | | | This reverts commit 0c30d4e4f5f9110c5a67bd0ca84444dc58697596. llvm-svn: 142320
* llvm-objdump: Add static symbol table dumping.Michael J. Spencer2011-10-171-4/+2
| | | | llvm-svn: 142319
* llvm-objdump: Add tests.Michael J. Spencer2011-10-171-0/+27
llvm-svn: 142198
OpenPOWER on IntegriCloud