Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | The order of the two symbol listings in a Macho x86_64 subtractor relocation ↵ | Owen Anderson | 2011-10-26 | 1 | -1/+3 | |
| | | | | | | is reversed from what seems intuitive to me. llvm-svn: 143035 | |||||
* | Include the full 64 bits of relocation data in the type info for MachO ↵ | Owen Anderson | 2011-10-26 | 1 | -1/+3 | |
| | | | | | | relocations, so that we can recognize scattered relocations. llvm-svn: 143033 | |||||
* | Expand relocation type field to 64 bits. MachO scattered relocations ↵ | Owen Anderson | 2011-10-26 | 3 | -4/+4 | |
| | | | | | | require 33 bits of type info. llvm-svn: 143032 | |||||
* | Improve pretty printing of GOT relocations in MachO on x86_64. | Owen Anderson | 2011-10-26 | 1 | -0/+7 | |
| | | | | llvm-svn: 143031 | |||||
* | Remove unused variable. | Eric Christopher | 2011-10-26 | 1 | -1/+0 | |
| | | | | llvm-svn: 143011 | |||||
* | Object/Archive: Cleanup anon namespace. | Michael J. Spencer | 2011-10-25 | 1 | -8/+5 | |
| | | | | llvm-svn: 142983 | |||||
* | Object/Archive: Add BSD style long file name support and skip internal members. | Michael J. Spencer | 2011-10-25 | 1 | -7/+48 | |
| | | | | llvm-svn: 142981 | |||||
* | Remove extraneous printing of "-PC". | Owen Anderson | 2011-10-25 | 1 | -1/+0 | |
| | | | | llvm-svn: 142970 | |||||
* | Add support for the notion of "hidden" relocations. On MachO, these are ↵ | Owen Anderson | 2011-10-25 | 1 | -0/+32 | |
| | | | | | | | | relocation entries that are used as additional information for other, real relocations, rather than being relocations themselves. I'm not familiar enough with ELF or COFF to know if they should have any relocations marked hidden. llvm-svn: 142961 | |||||
* | Teach the MachO relocation pretty-printer to interpret ARM half-relocations. | Owen Anderson | 2011-10-25 | 1 | -42/+104 | |
| | | | | llvm-svn: 142938 | |||||
* | More fixes and improvements to MachO relocation pretty-printing, particular ↵ | Owen Anderson | 2011-10-24 | 1 | -31/+127 | |
| | | | | | | for x86 and x86_64 relocations with addends. llvm-svn: 142875 | |||||
* | Get relocation parsing/dumping to a mostly-working state for MachO files. | Owen Anderson | 2011-10-24 | 1 | -6/+127 | |
| | | | | llvm-svn: 142852 | |||||
* | Stub out some of the MachO relocation decoding hooks. | Owen Anderson | 2011-10-24 | 1 | -0/+4 | |
| | | | | llvm-svn: 142840 | |||||
* | Use LLVMBool for a function that logically returns a boolean value. | Owen Anderson | 2011-10-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 142683 | |||||
* | STABS symbols are debug symbols. | Owen Anderson | 2011-10-21 | 1 | -1/+3 | |
| | | | | llvm-svn: 142673 | |||||
* | Bind libObject API for obtaining the section containing a Symbol. | Owen Anderson | 2011-10-21 | 1 | -0/+6 | |
| | | | | llvm-svn: 142667 | |||||
* | Expand the coverage of the libObject C bindings to include more SectionRef ↵ | Owen Anderson | 2011-10-21 | 1 | -0/+69 | |
| | | | | | | accessors as well as Symbol iterators. llvm-svn: 142661 | |||||
* | Object/COFF: Remove useless test. | Michael J. Spencer | 2011-10-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 142408 | |||||
* | Object/COFF: Change type from a struct to a uint16_t. The struct would be | Michael J. Spencer | 2011-10-18 | 1 | -1/+1 | |
| | | | | | | incorrect for bigendian systems. llvm-svn: 142403 | |||||
* | Object: Add some types to SymbolRef::Type. | Michael J. Spencer | 2011-10-17 | 1 | -0/+6 | |
| | | | | | | | | Some of these can be true at the same time and there are a lot to add, so this should be turned into a bitfield. Some of the other accessors should probably be folded into this. llvm-svn: 142318 | |||||
* | Object: Add isSymbolAbsolute and getSymbolSection. | Michael J. Spencer | 2011-10-17 | 3 | -0/+88 | |
| | | | | llvm-svn: 142317 | |||||
* | Object: Add isSymbolWeak. | Michael J. Spencer | 2011-10-17 | 3 | -0/+33 | |
| | | | | llvm-svn: 142316 | |||||
* | Object/COFF: Expose more data in the public API. | Michael J. Spencer | 2011-10-17 | 1 | -16/+26 | |
| | | | | llvm-svn: 142315 | |||||
* | Object: Implement casting for concrete classes. | Michael J. Spencer | 2011-10-17 | 1 | -0/+5 | |
| | | | | llvm-svn: 142314 | |||||
* | Object: Fix redundant name. | Michael J. Spencer | 2011-10-17 | 3 | -5/+5 | |
| | | | | llvm-svn: 142238 | |||||
* | ELF: Fix the section that relocations apply to. Add test to verify. Patch by ↵ | Michael J. Spencer | 2011-10-13 | 1 | -3/+3 | |
| | | | | | | Danil Malyshev! llvm-svn: 141901 | |||||
* | COFF: Implement sectionContainsSymbol for relocatable files only. | Michael J. Spencer | 2011-10-13 | 1 | -2/+8 | |
| | | | | llvm-svn: 141884 | |||||
* | Elf_Word is not POD! Stop using it in a DenseMap. | Nick Lewycky | 2011-10-13 | 1 | -7/+4 | |
| | | | | llvm-svn: 141851 | |||||
* | The VMAs stored in the symbol table of a MachO file are absolute addresses, ↵ | Owen Anderson | 2011-10-12 | 1 | -9/+9 | |
| | | | | | | not offsets from the section. llvm-svn: 141828 | |||||
* | Don't label a STAB debugging symbol as a function symbol. | Owen Anderson | 2011-10-12 | 1 | -0/+5 | |
| | | | | llvm-svn: 141824 | |||||
* | sectionContainsSymbol needs to be based on VMA's rather than section indices ↵ | Owen Anderson | 2011-10-12 | 1 | -2/+17 | |
| | | | | | | to properly account for files with segment load commands that contain no sections. llvm-svn: 141822 | |||||
* | Section indices in MachO symbol tables begin at 1, not 0. | Owen Anderson | 2011-10-12 | 1 | -1/+1 | |
| | | | | llvm-svn: 141815 | |||||
* | lib/Object/ELFObjectFile.cpp: Fix undefined behavior for ↵ | NAKAMURA Takumi | 2011-10-12 | 1 | -1/+4 | |
| | | | | | | | | MC/ELF/many-section.s not to fail (on msvc). DenseMap::lookup(k) would return "default constructor value" when k was not met. It would be useless when value type were POD. llvm-svn: 141774 | |||||
* | Expose MachOObjectFile externally, like we do for COFF. First step in ↵ | Owen Anderson | 2011-10-11 | 1 | -80/+3 | |
| | | | | | | reducing the amount of special-purpose code needed for llvm-objdump. llvm-svn: 141684 | |||||
* | Reapply r141605 with fixes for appropriate handling of reserved section numbers | Nick Lewycky | 2011-10-11 | 1 | -17/+50 | |
| | | | | | | in st_shndx fields. llvm-svn: 141639 | |||||
* | Add support for .symtab_shnidx. Unfortunately, doing this required breaking a | Nick Lewycky | 2011-10-11 | 1 | -9/+42 | |
| | | | | | | | layer of abstraction around SymbolRef where you can read its private SymbolPimpl member. llvm-svn: 141636 | |||||
* | Revert r141605 as it broke tests for llvm-nm. | Nick Lewycky | 2011-10-11 | 1 | -34/+13 | |
| | | | | llvm-svn: 141614 | |||||
* | Add support for reading many-section ELF files. | Nick Lewycky | 2011-10-11 | 1 | -13/+34 | |
| | | | | | | | If you want to tackle adding the testcase, let me know. It's a 4.2MB ELF file and I'll be happy to mail it to you. llvm-svn: 141605 | |||||
* | Fix warning. | Michael J. Spencer | 2011-10-10 | 1 | -2/+2 | |
| | | | | llvm-svn: 141597 | |||||
* | Object: add getSectionAlignment. | Michael J. Spencer | 2011-10-10 | 3 | -0/+34 | |
| | | | | llvm-svn: 141581 | |||||
* | lib/Object: Suppress warnings on gcc-4.3.4 cygwin | NAKAMURA Takumi | 2011-10-08 | 2 | -2/+2 | |
| | | | | llvm-svn: 141485 | |||||
* | Object: Add support for opening stdin. | Michael J. Spencer | 2011-10-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 141449 | |||||
* | Object: constize Archive. | Michael J. Spencer | 2011-10-08 | 1 | -2/+2 | |
| | | | | llvm-svn: 141448 | |||||
* | Fix GCC again. | Michael J. Spencer | 2011-10-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 141389 | |||||
* | Change relocation API to be per section. This time without breaking GCC. | Michael J. Spencer | 2011-10-07 | 4 | -157/+467 | |
| | | | | llvm-svn: 141385 | |||||
* | Revert 141376 and 141377 due to breaking the build. | Bill Wendling | 2011-10-07 | 4 | -466/+157 | |
| | | | | | | | | | | | | | | | | --- Reverse-merging r141377 into '.': U tools/llvm-objdump/MachODump.cpp --- Reverse-merging r141376 into '.': U include/llvm/Object/COFF.h U include/llvm/Object/ObjectFile.h U include/llvm-c/Object.h U tools/llvm-objdump/llvm-objdump.cpp U lib/Object/MachOObjectFile.cpp U lib/Object/COFFObjectFile.cpp U lib/Object/Object.cpp U lib/Object/ELFObjectFile.cpp llvm-svn: 141379 | |||||
* | Change relocation API to be per section. | Michael J. Spencer | 2011-10-07 | 4 | -157/+466 | |
| | | | | llvm-svn: 141376 | |||||
* | Object: Add isSection{Data,BSS}. | Michael J. Spencer | 2011-09-28 | 3 | -0/+58 | |
| | | | | llvm-svn: 140721 | |||||
* | Object: Add archive support. | Michael J. Spencer | 2011-09-27 | 3 | -1/+181 | |
| | | | | llvm-svn: 140626 | |||||
* | Object: make the following changes into SymbolRef | Benjamin Kramer | 2011-09-14 | 3 | -3/+192 | |
| | | | | | | | | | | | - Add enum SymbolType and function getSymbolType() - Add function isGlobal() - it's returns true for symbols that can be used in another objects, such as library functions. - Rename function getAddress() to getOffset() and add new function getAddress(), because currently getAddress() returns section offset of symbol first byte. new getAddress() return symbol address. - Change usage SymbolRef::getAddress() to getOffset() in tools/llvm-nm and tools/llvm-objdump. Patch by Danil Malyshev! llvm-svn: 139683 |