[llvm] [llvm-readobj, ELF] Support reading binary with more than PN_XNUM segments. (PR #165278)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 17 01:32:24 PST 2026


================
@@ -0,0 +1,64 @@
+## Show that llvm-readelf can handle an input file with many segments.
+# RUN: yaml2obj %s -o %t
+# RUN: llvm-readobj --file-headers --sections --segments %t | FileCheck %s
----------------
aokblast wrote:

Emm, I test the Sections [] in the readobj output. But you are right, it is meaningless and I decide to just check like what we have done in many-sections test.

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


More information about the llvm-commits mailing list