| #
1d966ae1 |
| 04-Feb-2012 |
Dylan Noblesmith <[email protected]> |
Object: avoid undefined behavior when bounds-checking
Don't form an out of bounds pointer just to test if it would be out of bounds.
Also perform the same bounds checking for all the previous mappe
Object: avoid undefined behavior when bounds-checking
Don't form an out of bounds pointer just to test if it would be out of bounds.
Also perform the same bounds checking for all the previous mapped structures.
llvm-svn: 149750
show more ...
|
| #
88297ef6 |
| 24-Jan-2012 |
Matt Beaumont-Gay <[email protected]> |
Sink assert-only variables into the asserts
llvm-svn: 148849
|
| #
54db64e2 |
| 23-Jan-2012 |
Matt Beaumont-Gay <[email protected]> |
Silence warnings in -asserts build
llvm-svn: 148715
|
| #
c3c80f09 |
| 22-Jan-2012 |
Eli Bendersky <[email protected]> |
Basic runtime dynamic loading capabilities added to ELFObjectFile, implemented in a subclass named DyldELFObject. This class supports rebasing the object file it represents by re-mapping section addr
Basic runtime dynamic loading capabilities added to ELFObjectFile, implemented in a subclass named DyldELFObject. This class supports rebasing the object file it represents by re-mapping section addresses to the actual memory addresses the object was placed in. This is required for MC-JIT implementation on ELF with debugging support.
Patch reviewed on llvm-commits.
Developed together with Ashok Thirumurthi and Andrew Kaylor.
llvm-svn: 148653
show more ...
|
| #
cbe72fc9 |
| 29-Nov-2011 |
Danil Malyshev <[email protected]> |
Fixed ObjectFile functions: - getSymbolOffset() renamed as getSymbolFileOffset() - getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObject
Fixed ObjectFile functions: - 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
show more ...
|
| #
37ab257b |
| 27-Nov-2011 |
Chandler Carruth <[email protected]> |
Revert r145180 as it is causing test failures on all the bots.
Original commit message: Fixed ObjectFile functions: - getSymbolOffset() renamed as getSymbolFileOffset() - getSymbolFileOffset(), getS
Revert r145180 as it is causing test failures on all the bots.
Original commit message: Fixed ObjectFile functions: - 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: 145182
show more ...
|
| #
2631f93f |
| 27-Nov-2011 |
Danil Malyshev <[email protected]> |
Fixed ObjectFile functions: - getSymbolOffset() renamed as getSymbolFileOffset() - getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObject
Fixed ObjectFile functions: - 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: 145180
show more ...
|
|
Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2 |
|
| #
7be76590 |
| 26-Oct-2011 |
Owen Anderson <[email protected]> |
Expand relocation type field to 64 bits. MachO scattered relocations require 33 bits of type info.
llvm-svn: 143032
|
| #
1d19f97e |
| 17-Oct-2011 |
Michael J. Spencer <[email protected]> |
Object: Add some types to SymbolRef::Type.
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 probabl
Object: Add some types to SymbolRef::Type.
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
show more ...
|
| #
32173153 |
| 17-Oct-2011 |
Michael J. Spencer <[email protected]> |
Object: Add isSymbolAbsolute and getSymbolSection.
llvm-svn: 142317
|
| #
01759754 |
| 17-Oct-2011 |
Michael J. Spencer <[email protected]> |
Object: Add isSymbolWeak.
llvm-svn: 142316
|
| #
4f91c2f2 |
| 17-Oct-2011 |
Michael J. Spencer <[email protected]> |
Object: Implement casting for concrete classes.
llvm-svn: 142314
|
|
Revision tags: llvmorg-3.0.0-rc1 |
|
| #
d3946676 |
| 17-Oct-2011 |
Michael J. Spencer <[email protected]> |
Object: Fix redundant name.
llvm-svn: 142238
|
| #
834bd602 |
| 13-Oct-2011 |
Michael J. Spencer <[email protected]> |
ELF: Fix the section that relocations apply to. Add test to verify. Patch by Danil Malyshev!
llvm-svn: 141901
|
| #
d3043965 |
| 13-Oct-2011 |
Nick Lewycky <[email protected]> |
Elf_Word is not POD! Stop using it in a DenseMap.
llvm-svn: 141851
|
| #
9bfcf776 |
| 12-Oct-2011 |
NAKAMURA Takumi <[email protected]> |
lib/Object/ELFObjectFile.cpp: Fix undefined behavior for 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 use
lib/Object/ELFObjectFile.cpp: Fix undefined behavior for 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
show more ...
|
| #
43f01cae |
| 11-Oct-2011 |
Nick Lewycky <[email protected]> |
Reapply r141605 with fixes for appropriate handling of reserved section numbers in st_shndx fields.
llvm-svn: 141639
|
| #
7adc4370 |
| 11-Oct-2011 |
Nick Lewycky <[email protected]> |
Add support for .symtab_shnidx. Unfortunately, doing this required breaking a layer of abstraction around SymbolRef where you can read its private SymbolPimpl member.
llvm-svn: 141636
|
| #
35a90c4b |
| 11-Oct-2011 |
Nick Lewycky <[email protected]> |
Revert r141605 as it broke tests for llvm-nm.
llvm-svn: 141614
|
| #
fdbb7c51 |
| 11-Oct-2011 |
Nick Lewycky <[email protected]> |
Add support for reading many-section ELF files. 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
|
| #
7989460a |
| 10-Oct-2011 |
Michael J. Spencer <[email protected]> |
Object: add getSectionAlignment.
llvm-svn: 141581
|
| #
cfb6cc7b |
| 07-Oct-2011 |
Michael J. Spencer <[email protected]> |
Fix GCC again.
llvm-svn: 141389
|
| #
e5fd0047 |
| 07-Oct-2011 |
Michael J. Spencer <[email protected]> |
Change relocation API to be per section. This time without breaking GCC.
llvm-svn: 141385
|
| #
206d8a7f |
| 07-Oct-2011 |
Bill Wendling <[email protected]> |
Revert 141376 and 141377 due to breaking the build.
--- Reverse-merging r141377 into '.': U tools/llvm-objdump/MachODump.cpp --- Reverse-merging r141376 into '.': U include/llvm/Object/COFF.h
Revert 141376 and 141377 due to breaking the build.
--- 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
show more ...
|
| #
b0d61540 |
| 07-Oct-2011 |
Michael J. Spencer <[email protected]> |
Change relocation API to be per section.
llvm-svn: 141376
|