[Lldb-commits] [PATCH] D55356: Add a method to get the "base" file address of an object file
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 6 01:32:20 PST 2018
labath created this revision.
labath added reviewers: clayborg, zturner, lemo.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: espindola.
Object files generally have a "base" address, which is their preferred
address to be loaded into memory (in the sense that if they are loaded
at this address, then no runtime relocation is required). This is often
the lowest address corresponding to that object file, and various other
addresses are expressed relative to this base (relative virtual
addresses (RVAs) in PE/COFF parlor).
All three of our main object file formats already had such a concept
(it's usually needed to implement SetLoadAddress), but it was not
exposed in any way. The motivation for making this public is that the
symbol address in the breakpad format are written relative to this
address.
https://reviews.llvm.org/D55356
Files:
include/lldb/Symbol/ObjectFile.h
lit/Modules/ELF/basic-info.yaml
lit/Modules/MachO/basic-info.yaml
lit/Modules/PECOFF/basic-info.yaml
lit/Modules/build-id-case.yaml
lit/Modules/compressed-sections.yaml
lit/Modules/elf-section-types.yaml
source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.h
source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
source/Plugins/ObjectFile/ELF/ObjectFileELF.h
source/Plugins/ObjectFile/JIT/ObjectFileJIT.h
source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h
tools/lldb-test/lldb-test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55356.176937.patch
Type: text/x-patch
Size: 17975 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20181206/2e0a0a97/attachment-0001.bin>
More information about the lldb-commits
mailing list