[llvm-branch-commits] [llvm] [llvm-readobj][docs] Update the --stack-sizes description (PR #232335)
Prabhu Rajasekaran via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Oct 15 06:59:11 PDT 2026
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/232335
>From e53933577ee5298ddab1b90e877b08854bb84950 Mon Sep 17 00:00:00 2001
From: prabhukr <prabhukr at google.com>
Date: Thu, 15 Oct 2026 06:49:33 -0700
Subject: [PATCH] [llvm-readobj][docs] Update the --stack-sizes description
The description said that --stack-sizes is only implemented for GNU
style output, which hasn't been the case for a while. Describe the LLVM
and JSON output instead: each entry also identifies its function as
--call-graph-info does, by its address in a linked file, or by the
relocation that applies to it in a relocatable file.
Assisted-by: Gemini
---
llvm/docs/CommandGuide/llvm-readelf.md | 6 ++++--
llvm/docs/CommandGuide/llvm-readobj.md | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/llvm/docs/CommandGuide/llvm-readelf.md b/llvm/docs/CommandGuide/llvm-readelf.md
index 68d0a168f682ad..f74e0d31f40c79 100644
--- a/llvm/docs/CommandGuide/llvm-readelf.md
+++ b/llvm/docs/CommandGuide/llvm-readelf.md
@@ -199,8 +199,10 @@ Display contents of the stackmap section.
:::{option} --stack-sizes
Display the contents of the stack sizes section(s), i.e. pairs of function
-names and the size of their stack frames. Currently only implemented for GNU
-style output.
+names and the size of their stack frames. In `LLVM` and `JSON` output (see
+{option}`--elf-output-style`), each entry also identifies its function as
+{option}`--call-graph-info` does: by its address in a linked file, or by the
+relocation that applies to the entry in a relocatable file.
:::
:::{option} --string-dump=<section[,section,...]>, -p
diff --git a/llvm/docs/CommandGuide/llvm-readobj.md b/llvm/docs/CommandGuide/llvm-readobj.md
index e5362e11933ca9..8fb2d73daac29b 100644
--- a/llvm/docs/CommandGuide/llvm-readobj.md
+++ b/llvm/docs/CommandGuide/llvm-readobj.md
@@ -263,8 +263,10 @@ Display the section to segment mapping.
:::{option} --stack-sizes
Display the contents of the stack sizes section(s), i.e. pairs of function
-names and the size of their stack frames. Currently only implemented for GNU
-style output.
+names and the size of their stack frames. In `LLVM` and `JSON` output (see
+{option}`--elf-output-style`), each entry also identifies its function as
+{option}`--call-graph-info` does: by its address in a linked file, or by the
+relocation that applies to the entry in a relocatable file.
:::
:::{option} --version-info, -V
More information about the llvm-branch-commits
mailing list