summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Change relocation API to be per section. This time without breaking GCC.Michael J. Spencer2011-10-071-43/+115
| | | | llvm-svn: 141385
* Revert 141376 and 141377 due to breaking the build.Bill Wendling2011-10-071-114/+43
| | | | | | | | | | | | | | | | --- 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. Spencer2011-10-071-43/+114
| | | | llvm-svn: 141376
* Object: Add isSection{Data,BSS}.Michael J. Spencer2011-09-281-0/+14
| | | | llvm-svn: 140721
* Object: make the following changes into SymbolRefBenjamin Kramer2011-09-141-1/+50
| | | | | | | | | | | - 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
* Silence false positive uninitialized variable warnings from GCC.Benjamin Kramer2011-09-131-3/+3
| | | | llvm-svn: 139573
* Add support for relocations to ObjectFile.Benjamin Kramer2011-09-081-2/+73
| | | | | | Patch by Danil Malyshev! llvm-svn: 139314
* ObjectFile: Add a method to check whether a section contains a symbol.Benjamin Kramer2011-07-151-0/+8
| | | | | | | - No ELF or COFF implementation yet, I don't have a way to test that. Should be straightforward to add though. llvm-svn: 135288
* Use memcmp.Benjamin Kramer2011-07-051-3/+1
| | | | llvm-svn: 134439
* Really fix typo :-(Rafael Espindola2011-07-051-1/+1
| | | | llvm-svn: 134436
* Fix typo.Rafael Espindola2011-07-051-2/+2
| | | | llvm-svn: 134433
* Compare all 4 bytes of the header.Rafael Espindola2011-07-051-2/+3
| | | | llvm-svn: 134427
* Fix warnings.Michael J. Spencer2011-07-051-3/+3
| | | | llvm-svn: 134408
* Object: Add proper error handling.Michael J. Spencer2011-06-251-83/+243
| | | | llvm-svn: 133872
* Make Binary the parent of ObjectFile and update children to new interface.Michael J. Spencer2011-06-251-114/+14
| | | | llvm-svn: 133870
* Revert the last two commits in the series. r132911, r132912.Michael J. Spencer2011-06-131-14/+114
| | | | llvm-svn: 132913
* Make Binary the parent of ObjectFile and update children to new interface.Michael J. Spencer2011-06-131-114/+14
| | | | llvm-svn: 132911
* Remove dead variable pointed out by GCC 4.6 warnings, and reflow this a littleNick Lewycky2011-05-021-4/+1
| | | | | | to scope a variable more tightly per llvm coding style. No functional change. llvm-svn: 130684
* Assorted bugfixes in object file handling:Eric Christopher2011-04-031-2/+18
| | | | | | | | | | | | | | | | | | | | | | | - Adds support for sniffing PE/COFF files on win32 (.exe and .dll) which are COFF files that have an MS-DOS compatibility stub on the front of them. - Fixes a bug in the COFFObjectFile's support for the Microsoft COFF extension for long symbol names, wherein it was attempting to parse the leading '/' in an extended symbol name reference as part of the integer offset. - Fixes bugs in COFFObjectFile and ELFObjectFile wherein section and symbol iterators were being returned with uninitialized bytes; the type DataRefImpl is a union between 2 32-bit words (d.a and d.b) and a single intptr_t word (p). Only p was being initialized, so in 32-bit builds the result would be iterators with random upper 32-bit words in their DataRefImpls. This caused random failures when seeking around in object files. Patch by Graydon Hoare! llvm-svn: 128799
* Object: Fix type punned pointer issues by making DataRefImpl a union and ↵Michael J. Spencer2011-01-211-23/+28
| | | | | | using intptr_t. llvm-svn: 123962
* Object: Add COFF Support.Michael J. Spencer2011-01-201-0/+370
llvm-svn: 123895
OpenPOWER on IntegriCloud