[llvm] [llvm-readobj] Dump callgraph section info for ELF (PR #157499)
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 21 10:45:33 PST 2025
================
@@ -0,0 +1,15 @@
+## Tests that --call-graph-info warns if there is no .llvm.callgraph section.
+
+# REQUIRES: x86-registered-target
+
+# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
+# RUN: llvm-readelf --elf-output-style=LLVM --call-graph-info %t 2>&1 | FileCheck %s -DFILE=%t
+# RUN: llvm-readelf --elf-output-style=JSON --pretty-print --call-graph-info %t 2>&1 | FileCheck %s -DFILE=%t
+
+# CHECK: warning: 'missing section': No .llvm.callgraph section found.
----------------
ilovepi wrote:
Update file name to reflect that its no longer an error.
https://github.com/llvm/llvm-project/pull/157499
More information about the llvm-commits
mailing list