#
3045767c |
| 20-Feb-2014 |
NAKAMURA Takumi <geek4civic@gmail.com> |
COFFObjectFile.cpp: Appease msvc in r201760.
llvm-svn: 201769
|
#
215a586c |
| 20-Feb-2014 |
Rui Ueyama <ruiu@google.com> |
llvm-objdump/COFF: Print SEH table addresses.
SEH table addresses are VA in COFF file. In this patch we convert VA to RVA before printing it, because dumpbin prints them as RVAs.
llvm-svn: 201760
|
#
b5155a57 |
| 10-Feb-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Change the begin and end methods in ObjectFile to match the style guide.
llvm-svn: 201108
|
#
22fe9c1e |
| 05-Feb-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use the information provided by getFlags to unify some code in llvm-nm.
It is not clear how much we should try to expose in getFlags. For example, should there be a SF_Object and a SF_Text?
But for
Use the information provided by getFlags to unify some code in llvm-nm.
It is not clear how much we should try to expose in getFlags. For example, should there be a SF_Object and a SF_Text?
But for information that is already being exposed, we may as well use it in llvm-nm.
llvm-svn: 200820
show more ...
|
#
975e115e |
| 04-Feb-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove unused SF_ThreadLocal.
llvm-svn: 200800
|
#
20122a43 |
| 31-Jan-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Simplify getSymbolFlags.
None of the object formats require extra parsing to compute these flags, so the method cannot fail.
llvm-svn: 200574
|
#
196666cf |
| 30-Jan-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Only ELF has a dynamic symbol table. Remove it from ObjectFile.
COFF has only one symbol table. MachO has a LC_DYSYMTAB, but that is not a symbol table, just extra info about the one symbol table (L
Only ELF has a dynamic symbol table. Remove it from ObjectFile.
COFF has only one symbol table. MachO has a LC_DYSYMTAB, but that is not a symbol table, just extra info about the one symbol table (LC_SYMTAB). IR (coming soon) also has only one table.
llvm-svn: 200488
show more ...
|
#
5e812afa |
| 30-Jan-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Simplify the handling of iterators in ObjectFile.
None of the object file formats reported error on iterator increment. In retrospect, that is not too surprising: no object format stores symbols or
Simplify the handling of iterators in ObjectFile.
None of the object file formats reported error on iterator increment. In retrospect, that is not too surprising: no object format stores symbols or sections in a linked list or other structure that requires chasing pointers. As a consequence, all error checking can be done on begin() and end().
This reduces the text segment of bin/llvm-readobj in my machine from 521233 to 518526 bytes.
llvm-svn: 200442
show more ...
|
#
10ed9ddc |
| 26-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
llvm-readobj: add support for PE32+ (Windows 64 bit executable).
PE32+ supports 64 bit address space, but the file format remains 32 bit. So its file format is pretty similar to PE32 (32 bit executa
llvm-readobj: add support for PE32+ (Windows 64 bit executable).
PE32+ supports 64 bit address space, but the file format remains 32 bit. So its file format is pretty similar to PE32 (32 bit executable). The differences compared to PE32 are (1) the lack of "BaseOfData" field and (2) some of its data members are 64 bit.
In this patch, I added a new member function to get a PE32+ Header object to COFFObjectFile class and made llvm-readobj to use it.
llvm-svn: 200117
show more ...
|
#
afcc3df7 |
| 24-Jan-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Make ObjectFile ownership of the MemoryBuffer optional.
This allows llvm-ar to mmap the input files only once.
llvm-svn: 200040
|
#
692410ef |
| 21-Jan-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Be a bit more consistent about using ErrorOr when constructing Binary objects.
The constructors of classes deriving from Binary normally take an error_code as an argument to the constructor. My orig
Be a bit more consistent about using ErrorOr when constructing Binary objects.
The constructors of classes deriving from Binary normally take an error_code as an argument to the constructor. My original intent was to change them to have a trivial constructor and move the initial parsing logic to a static method returning an ErrorOr. I changed my mind because:
* A constructor with an error_code out parameter is extremely convenient from the implementation side. We can incrementally construct the object and give up when we find an error. * It is very efficient when constructing on the stack or when there is no error. The only inefficient case is where heap allocating and an error is found (we have to free the memory).
The result is that this is a much smaller patch. It just standardizes the create* helpers to return an ErrorOr.
Almost no functionality change: The only difference is that this found that we were trying to read past the end of COFF import library but ignoring the error.
llvm-svn: 199770
show more ...
|
#
24fc2d64 |
| 17-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
80-column.
llvm-svn: 199519
|
#
e5df6095 |
| 17-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
llvm-objdump/COFF: Print ordinal base number.
llvm-svn: 199518
|
#
da49d0d4 |
| 16-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
llvm-objdump/COFF: Print DLL name in the export table header.
llvm-svn: 199422
|
#
686738e2 |
| 16-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
Use static instead of anonymous namespace.
llvm-svn: 199419
|
#
5efa665f |
| 16-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
Reduce nesting.
llvm-svn: 199418
|
#
8ff24d25 |
| 16-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
Use the current local variable naming style.
llvm-svn: 199417
|
#
ad882ba8 |
| 16-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
llmv-objdump/COFF: Print export table contents.
This patch adds the capability to dump export table contents. An example output is this:
Export Table: Ordinal RVA Name 5 0x200
llmv-objdump/COFF: Print export table contents.
This patch adds the capability to dump export table contents. An example output is this:
Export Table: Ordinal RVA Name 5 0x2008 exportfn1 6 0x2010 exportfn2
By adding this feature to llvm-objdump, we will be able to use it to check export table contents in LLD's tests. Currently we are doing binary comparison in the tests, which is fragile and not readable to humans.
llvm-svn: 199358
show more ...
|
#
a045b73a |
| 16-Jan-2014 |
Rui Ueyama <ruiu@google.com> |
Don't use DataRefImpl to implement ImportDirectoryEntryRef.
DataRefImpl (a union of two integers and a pointer) is not the ideal data type to represent a reference to an import directory entity. We
Don't use DataRefImpl to implement ImportDirectoryEntryRef.
DataRefImpl (a union of two integers and a pointer) is not the ideal data type to represent a reference to an import directory entity. We should just use the pointer to the import table and an offset instead to simplify. No functionality change.
llvm-svn: 199349
show more ...
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1 |
|
#
15ba1e20 |
| 15-Nov-2013 |
Rui Ueyama <ruiu@google.com> |
Readobj: If NumbersOfSections is 0xffff, it's an COFF import library.
0xffff does not mean that there are 65535 sections in a COFF file but indicates that it's a COFF import library. This patch fixe
Readobj: If NumbersOfSections is 0xffff, it's an COFF import library.
0xffff does not mean that there are 65535 sections in a COFF file but indicates that it's a COFF import library. This patch fixes SEGV error when an import library file is passed to llvm-readobj.
llvm-svn: 194844
show more ...
|
#
586af97a |
| 02-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
move getSymbolNMTypeChar to the one program that needs it: nm.
llvm-svn: 193933
|
#
06adfac8 |
| 02-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Convert another use of getSymbolNMTypeChar.
llvm-svn: 193932
|
#
e62ab11f |
| 02-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Avoid some getSymbolNMTypeChar uses in COFFObjectFile.cpp itself.
This is a fixed version of 193928 which keeps these uses in sync.
llvm-svn: 193931
|
#
7700d8bb |
| 02-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Revert "Don't use getSymbolNMTypeChar for implementing COFFObjectFile::getSymbolFileOffset."
Investigating a bot failure.
This reverts commit r193928.
llvm-svn: 193929
|
#
48d0bb95 |
| 02-Nov-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't use getSymbolNMTypeChar for implementing COFFObjectFile::getSymbolFileOffset.
llvm-svn: 193928
|