2010-11-15 11:21:41 +08:00
|
|
|
add_llvm_library(LLVMObject
|
2011-09-28 03:36:55 +08:00
|
|
|
Archive.cpp
|
2015-06-08 10:32:01 +08:00
|
|
|
ArchiveWriter.cpp
|
2011-06-26 01:54:29 +08:00
|
|
|
Binary.cpp
|
2017-06-03 01:53:06 +08:00
|
|
|
COFFImportFile.cpp
|
|
|
|
COFFModuleDefinition.cpp
|
2011-06-13 19:11:39 +08:00
|
|
|
COFFObjectFile.cpp
|
2017-01-11 23:26:41 +08:00
|
|
|
Decompressor.cpp
|
2013-08-09 06:27:13 +08:00
|
|
|
ELF.cpp
|
2011-06-13 19:11:39 +08:00
|
|
|
ELFObjectFile.cpp
|
2011-06-26 01:42:56 +08:00
|
|
|
Error.cpp
|
2014-02-22 04:10:59 +08:00
|
|
|
IRObjectFile.cpp
|
2017-03-31 12:47:07 +08:00
|
|
|
IRSymtab.cpp
|
2011-04-22 12:06:24 +08:00
|
|
|
MachOObjectFile.cpp
|
2013-06-18 23:03:28 +08:00
|
|
|
MachOUniversal.cpp
|
[Object] Add basic minidump support
Summary:
This patch adds basic support for reading minidump files. It contains
the definitions of various important minidump data structures (header,
stream directory), and of one minidump stream (SystemInfo). The ability
to read other streams will be added in follow-up patches. However, all
streams can be read even now as raw data, which means lldb's minidump
support (where this code is taken from) can be immediately rebased on
top of this patch as soon as it lands.
As we don't have any support for generating minidump files (yet), this
tests the code via unit tests with some small handcrafted binaries in
the form of c char arrays.
Reviewers: Bigcheese, jhenderson, zturner
Subscribers: srhines, dschuff, mgorny, fedor.sergeev, lemo, clayborg, JDevlieghere, aprantl, lldb-commits, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59291
llvm-svn: 356652
2019-03-21 17:18:59 +08:00
|
|
|
Minidump.cpp
|
2016-12-01 14:51:47 +08:00
|
|
|
ModuleSymbolTable.cpp
|
2011-04-04 07:07:51 +08:00
|
|
|
Object.cpp
|
2010-11-15 11:21:41 +08:00
|
|
|
ObjectFile.cpp
|
2014-07-04 02:59:23 +08:00
|
|
|
RecordStreamer.cpp
|
[DWARF] Refactor RelocVisitor and fix computation of SHT_RELA-typed relocation entries
Summary:
getRelocatedValue may compute incorrect value for SHT_RELA-typed relocation entries.
// DWARFDataExtractor.cpp
uint64_t DWARFDataExtractor::getRelocatedValue(uint32_t Size, uint32_t *Off,
...
// This formula is correct for REL, but may be incorrect for RELA if the value
// stored in the location (getUnsigned(Off, Size)) is not zero.
return getUnsigned(Off, Size) + Rel->Value;
In this patch, we
* refactor these visit* functions to include a new parameter `uint64_t A`.
Since these visit* functions are no longer used as visitors, rename them to resolve*.
+ REL: A is used as the addend. A is the value stored in the location where the
relocation applies: getUnsigned(Off, Size)
+ RELA: The addend encoded in RelocationRef is used, e.g. getELFAddend(R)
* and add another set of supports* functions to check if a given relocation type is handled.
DWARFObjInMemory uses them to fail early.
Reviewers: echristo, dblaikie
Reviewed By: echristo
Subscribers: mgorny, aprantl, aheejin, fedor.sergeev, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D57939
llvm-svn: 356729
2019-03-22 10:43:11 +08:00
|
|
|
RelocationResolver.cpp
|
2014-02-22 04:10:59 +08:00
|
|
|
SymbolicFile.cpp
|
2015-06-23 10:08:48 +08:00
|
|
|
SymbolSize.cpp
|
2016-12-01 00:49:11 +08:00
|
|
|
WasmObjectFile.cpp
|
2019-06-12 19:32:43 +08:00
|
|
|
WindowsMachineFlag.cpp
|
2017-05-20 09:49:19 +08:00
|
|
|
WindowsResource.cpp
|
[XCOFF] Add functionality for parsing AIX XCOFF object file headers
Summary:
1. Add functionality for parsing AIX XCOFF object files headers.
2. Only support 32-bit AIX XCOFF object files in this patch.
3. Print out the AIX XCOFF object file header in YAML format.
Reviewers: sfertile, hubert.reinterpretcast, jasonliu, mstorsjo, zturner, rnk
Reviewed By: sfertile, hubert.reinterpretcast
Subscribers: jsji, mgorny, hiraditya, jdoerfert, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59419
Patch by Digger Lin
llvm-svn: 357663
2019-04-04 08:53:21 +08:00
|
|
|
XCOFFObjectFile.cpp
|
2015-02-11 11:28:02 +08:00
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Object
|
2015-06-16 08:44:12 +08:00
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
2017-06-28 07:50:11 +08:00
|
|
|
llvm_vcsrevision_h
|
2010-11-15 11:21:41 +08:00
|
|
|
)
|