[llvm-branch-commits] [llvm] [llvm-readobj][ELF] Print the address of each --stack-sizes entry (PR #232331)
James Henderson via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Oct 19 01:57:23 PDT 2026
================
@@ -8998,9 +9003,14 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printStackSizes() {
template <class ELFT>
void LLVMELFDumper<ELFT>::printStackSizeEntry(uint64_t Size,
- ArrayRef<std::string> FuncNames) {
+ ArrayRef<std::string> FuncNames,
+ uint64_t Address) {
DictScope D(W, "Entry");
W.printList("Functions", FuncNames);
+ // Print the address only for a linked file. In a relocatable file the value
+ // stored in the entry is just the implicit addend of its relocation.
----------------
jh7370 wrote:
The reference to implicit addend is misleading for objects that use SHT_RELA, so this comment is incorrect.
https://github.com/llvm/llvm-project/pull/232331
More information about the llvm-branch-commits
mailing list