| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 169963
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sooooo many of these had incorrect or strange main module includes.
I have manually inspected all of these, and fixed the main module
include to be the nearest plausible thing I could find. If you own or
care about any of these source files, I encourage you to take some time
and check that these edits were sensible. I can't have broken anything
(I strictly added headers, and reordered them, never removed), but they
may not be the headers you'd really like to identify as containing the
API being implemented.
Many forward declarations and missing includes were added to a header
files to allow them to parse cleanly when included first. The main
module rule does in fact have its merits. =]
llvm-svn: 169131
|
|
|
|
|
|
| |
Should bring the buildbots back to life.
llvm-svn: 168935
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MachOObjectFile owns a MachOObj, but never frees it. Both MachOObjectFile
and MachOObj want to own the MemoryBuffer, though, so we have to be careful
and give them each one of their own.
Thanks to Greg Clayton, Eric Christopher and Michael Spencer for helping
figure out what's going wrong here.
rdar://12561773
llvm-svn: 168923
|
|
|
|
|
|
|
|
| |
Currently only implemented for ELF.
Patch by Amara Emerson.
llvm-svn: 166918
|
|
|
|
| |
llvm-svn: 165588
|
|
|
|
|
|
|
|
| |
determine whether or not a section is meant to be read-only. These functions will be used by the MCJIT RuntimeDyld to give hints to the memory manager during the object loading process in a future patch.
Patch by Ashok Thirumurthi.
llvm-svn: 165586
|
|
|
|
| |
llvm-svn: 157377
|
|
|
|
|
|
| |
the MachO spec.
llvm-svn: 155976
|
|
|
|
| |
llvm-svn: 154661
|
|
|
|
|
|
|
|
|
|
| |
of zero-initialized sections, virtual sections and common symbols
and preventing the loading of sections which are not required for
execution such as debug information.
Patch by Andy Kaylor!
llvm-svn: 154610
|
|
|
|
| |
llvm-svn: 154371
|
|
|
|
|
|
| |
Make Binary::TypeID more granular, to distinguish between ELF 32/64 little/big
llvm-svn: 152435
|
|
|
|
|
|
| |
Add ObjectFile::getLoadName() for retrieving the soname/installname of a shared object.
llvm-svn: 151845
|
|
|
|
|
|
|
|
|
| |
* Add begin_dynamic_table() / end_dynamic_table() private interface to ELFObjectFile.
* Add begin_libraries_needed() / end_libraries_needed() interface to ObjectFile, for grabbing the list of needed libraries for a shared object or dynamic executable.
* Implement this new interface completely for ELF, leave stubs for COFF and MachO.
* Add 'llvm-readobj' tool for dumping ObjectFile information.
llvm-svn: 151785
|
|
|
|
|
|
|
|
|
| |
ST_Undefined. Implement these completely for ELF.
Rename ST_External to ST_Unknown, and slightly change its semantics. It now only indicates that the symbol's type
is unknown, not that the symbol is undefined. (For that, use ST_Undefined).
llvm-svn: 151696
|
|
|
|
|
|
| |
and isWeak(), with a bitset of flags.
llvm-svn: 151670
|
|
|
|
|
|
|
|
| |
Add -D option to llvm-nm to dump dynamic symbols.
Patch by David Meyer.
llvm-svn: 151600
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
relocation address, and we don't find a symbol table entry, try section begin addresses as well.
llvm-svn: 143151
|
|
|
|
|
|
| |
and x86_64 TLV relocations in MachO.
llvm-svn: 143140
|
|
|
|
| |
llvm-svn: 143051
|
|
|
|
|
|
| |
is reversed from what seems intuitive to me.
llvm-svn: 143035
|
|
|
|
|
|
| |
relocations, so that we can recognize scattered relocations.
llvm-svn: 143033
|
|
|
|
|
|
| |
require 33 bits of type info.
llvm-svn: 143032
|
|
|
|
| |
llvm-svn: 143031
|
|
|
|
| |
llvm-svn: 143011
|
|
|
|
| |
llvm-svn: 142970
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 142938
|
|
|
|
|
|
| |
for x86 and x86_64 relocations with addends.
llvm-svn: 142875
|
|
|
|
| |
llvm-svn: 142852
|
|
|
|
| |
llvm-svn: 142840
|
|
|
|
| |
llvm-svn: 142673
|
|
|
|
| |
llvm-svn: 142317
|
|
|
|
| |
llvm-svn: 142316
|
|
|
|
| |
llvm-svn: 142238
|
|
|
|
|
|
| |
not offsets from the section.
llvm-svn: 141828
|
|
|
|
| |
llvm-svn: 141824
|
|
|
|
|
|
| |
to properly account for files with segment load commands that contain no sections.
llvm-svn: 141822
|
|
|
|
| |
llvm-svn: 141815
|
|
|
|
|
|
| |
reducing the amount of special-purpose code needed for llvm-objdump.
llvm-svn: 141684
|
|
|
|
| |
llvm-svn: 141597
|
|
|
|
| |
llvm-svn: 141581
|
|
|
|
| |
llvm-svn: 141385
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
--- 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
|
|
|
|
| |
llvm-svn: 141376
|
|
|
|
| |
llvm-svn: 140721
|