[llvm-branch-commits] [llvm] [llvm-readobj] Fix the test case (PR #165279)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Oct 30 09:53:22 PDT 2025


https://github.com/aokblast updated https://github.com/llvm/llvm-project/pull/165279

>From 214170af5847ac10e1af0f1274c4e4ede3f56ff8 Mon Sep 17 00:00:00 2001
From: ShengYi Hung <aokblast at FreeBSD.org>
Date: Fri, 31 Oct 2025 00:52:17 +0800
Subject: [PATCH] [llvm-objcopy] Fix testcase to adapt the support of PN_XNUM
 in ELF.

---
 llvm/test/tools/llvm-objcopy/ELF/many-sections.test | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/test/tools/llvm-objcopy/ELF/many-sections.test b/llvm/test/tools/llvm-objcopy/ELF/many-sections.test
index 6622db237026f..4c618acb5c951 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/many-sections.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/many-sections.test
@@ -6,8 +6,8 @@ RUN: llvm-readobj --file-headers --sections --symbols %t2 | FileCheck %s
 RUN: llvm-readelf --symbols %t2 | FileCheck --check-prefix=SYMS %s
 
 ## The ELF header should have e_shnum == 0 and e_shstrndx == SHN_XINDEX.
-# CHECK:        SectionHeaderCount: 0
-# CHECK-NEXT:   StringTableSectionIndex: 65535
+# CHECK:        SectionHeaderCount: 0 (65540)
+# CHECK-NEXT:   StringTableSectionIndex: 65535 (65539)
 
 ## The first section header should store the real section header count and
 ## shstrndx in its fields.



More information about the llvm-branch-commits mailing list