https://github.com/Prabhuk created https://github.com/llvm/llvm-project/pull/232335
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 >From eec05ea27b93f752cdc00372485d2a241c7f8fc0 Mon Sep 17 00:00:00 2001 From: prabhukr <[email protected]> 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 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
