[PATCH] D135984: Add a "--load-address <addr>" option to llvm-gsymutil.
Greg Clayton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 14 12:56:35 PDT 2022
clayborg created this revision.
clayborg added reviewers: simon.giesecke, jhenderson, MaskRay, JDevlieghere, jakehehrlich, echristo.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
clayborg requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This option allows clients to set the load address for a GSYM file which will override the BaseAddress in the GSYM header. GSYM files are easily relocatable by modifying just the base address. This allows GSYM to be used for symbolication much easier by allowing clients to specify the load address of the binary and then do lookups using PC values from a live process.
This option can be used when dumping a full GSYM file, or can also be used when doing lookups via the "--address <addr>" option, or "--addresses-from-stdin" option.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135984
Files:
llvm/include/llvm/DebugInfo/GSYM/GsymReader.h
llvm/lib/DebugInfo/GSYM/GsymReader.cpp
llvm/test/tools/llvm-gsymutil/X86/elf-dwarf.yaml
llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135984.467892.patch
Type: text/x-patch
Size: 14069 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221014/49d2f969/attachment.bin>
More information about the llvm-commits
mailing list