| #
447d2d12 |
| 11-Jun-2013 |
Rafael Espindola <[email protected]> |
Fix variable name style. Don't cast to and from int.
This enables the compiler to see the enum and produce warnings about a switch not being fully covered. Fix one of these warnings.
llvm-svn: 1837
Fix variable name style. Don't cast to and from int.
This enables the compiler to see the enum and produce warnings about a switch not being fully covered. Fix one of these warnings.
llvm-svn: 183749
show more ...
|
| #
cd81b909 |
| 11-Jun-2013 |
Rafael Espindola <[email protected]> |
Convert another use of sys::identifyFileType.
No functionality change.
llvm-svn: 183747
|
| #
1dc43065 |
| 10-Jun-2013 |
Rafael Espindola <[email protected]> |
Pass a StringRef to sys::identifyFileType.
llvm-svn: 183669
|
|
Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3 |
|
| #
4f60a38f |
| 30-May-2013 |
Rafael Espindola <[email protected]> |
Change how we iterate over relocations on ELF.
For COFF and MachO, sections semantically have relocations that apply to them. That is not the case on ELF.
In relocatable objects (.o), a section wit
Change how we iterate over relocations on ELF.
For COFF and MachO, sections semantically have relocations that apply to them. That is not the case on ELF.
In relocatable objects (.o), a section with relocations in ELF has offsets to another section where the relocations should be applied.
In dynamic objects and executables, relocations don't have an offset, they have a virtual address. The section sh_info may or may not point to another section, but that is not actually used for resolving the relocations.
This patch exposes that in the ObjectFile API. It has the following advantages:
* Most (all?) clients can handle this more efficiently. They will normally walk all relocations, so doing an effort to iterate in a particular order doesn't save time.
* llvm-readobj now prints relocations in the same way the native readelf does.
* probably most important, relocations that don't point to any section are now visible. This is the case of relocations in the rela.dyn section. See the updated relocation-executable.test for example.
llvm-svn: 182908
show more ...
|
|
Revision tags: llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1 |
|
| #
e4dd2e01 |
| 29-Apr-2013 |
Rafael Espindola <[email protected]> |
Add getSymbolAlignment to the ObjectFile interface.
For regular object files this is only meaningful for common symbols. An object file format with direct support for atoms should be able to provide
Add getSymbolAlignment to the ObjectFile interface.
For regular object files this is only meaningful for common symbols. An object file format with direct support for atoms should be able to provide alignment information for all symbols.
This replaces getCommonSymbolAlignment and fixes test-common-symbols-alignment.ll on darwin. This also includes a fix to MachOObjectFile::getSymbolFlags. It was marking undefined symbols as common (already tested by existing mcjit tests now that it is used).
llvm-svn: 180736
show more ...
|
| #
717c4d44 |
| 07-Apr-2013 |
Rafael Espindola <[email protected]> |
Remove unused argument.
llvm-svn: 178987
|
| #
a5a4ff5a |
| 25-Jan-2013 |
Eli Bendersky <[email protected]> |
When encountering an unknown file format, ObjectFile::createObjectFile should politely report it instead of running into llvm_unreachable.
Also patch llvm-dwarfdump to actually check whether the fil
When encountering an unknown file format, ObjectFile::createObjectFile should politely report it instead of running into llvm_unreachable.
Also patch llvm-dwarfdump to actually check whether the file it's attempting to dump is a valid object file.
llvm-svn: 173489
show more ...
|
|
Revision tags: llvmorg-3.2.0, llvmorg-3.2.0-rc3, llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1, llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1 |
|
| #
2d3dac3e |
| 25-Dec-2011 |
Rafael Espindola <[email protected]> |
Remove unused variables.
llvm-svn: 147261
|
| #
a379b181 |
| 20-Dec-2011 |
David Blaikie <[email protected]> |
Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch
llvm-svn: 146960
|
|
Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1 |
|
| #
557a81e9 |
| 14-Sep-2011 |
Benjamin Kramer <[email protected]> |
ObjectFile: Add support for mach-o-style dSYM companion files.
llvm-svn: 139676
|
| #
ec29b121 |
| 25-Jun-2011 |
Michael J. Spencer <[email protected]> |
Make Binary the parent of ObjectFile and update children to new interface.
llvm-svn: 133870
|
| #
aa41981d |
| 13-Jun-2011 |
Michael J. Spencer <[email protected]> |
Revert the last two commits in the series. r132911, r132912.
llvm-svn: 132913
|
| #
a7f9c49a |
| 13-Jun-2011 |
Michael J. Spencer <[email protected]> |
Make Binary the parent of ObjectFile and update children to new interface.
llvm-svn: 132911
|
| #
bafb9347 |
| 22-Apr-2011 |
Eric Christopher <[email protected]> |
Hook in mach-o object files into Object interface.
llvm-svn: 129976
|
|
Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1 |
|
| #
b60a18de |
| 20-Jan-2011 |
Michael J. Spencer <[email protected]> |
Object: Add ELF support.
llvm-svn: 123896
|
| #
8e90adaf |
| 20-Jan-2011 |
Michael J. Spencer <[email protected]> |
Object: Add COFF Support.
llvm-svn: 123895
|
| #
39a0ffc3 |
| 16-Dec-2010 |
Michael J. Spencer <[email protected]> |
MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.
llvm-svn: 121958
|
| #
7b6fef82 |
| 09-Dec-2010 |
Michael J. Spencer <[email protected]> |
Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.
llvm-svn: 121379
|
| #
447762da |
| 29-Nov-2010 |
Michael J. Spencer <[email protected]> |
Merge System into Support.
llvm-svn: 120298
|
| #
ee5ba319 |
| 17-Nov-2010 |
Peter Collingbourne <[email protected]> |
Fix typo: Exectuable -> Executable
llvm-svn: 119433
|
| #
f177d16f |
| 16-Nov-2010 |
Michael J. Spencer <[email protected]> |
Object: Get rid of sys::Path, Triple, and cleanup namespace.
llvm-svn: 119309
|
| #
fe5ee802 |
| 15-Nov-2010 |
Michael J. Spencer <[email protected]> |
Add LLVMObject Library.
llvm-svn: 119107
|