[llvm-branch-commits] [llvm] [llvm-readobj][ELF] Print the address of each --stack-sizes entry (PR #232331)

Prabhu Rajasekaran via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 19 04:51:55 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.
----------------
Prabhuk wrote:

Right. Removed the comment and the Address is printed only if it is passed which is true only for linked files. PTAL.

https://github.com/llvm/llvm-project/pull/232331


More information about the llvm-branch-commits mailing list