[llvm] [llvm-readobj, ELF] Support reading binary with more than PN_XNUM segments. (PR #165278)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 16 21:32:07 PST 2026
================
@@ -37,12 +37,12 @@ Sections:
# RUN: FileCheck %s -DFILE=%t2 --check-prefix=GNU2
# RUN: llvm-readelf --file-headers --section-details %t2 2>&1 | \
# RUN: FileCheck %s -DFILE=%t2 --check-prefix=GNU2
+# GNU2: warning: '[[FILE]]': invalid section index: 0
# GNU2: Number of section headers: 0
# GNU2: Section header string table index: 65535 (corrupt: out of range)
# GNU2-EMPTY:
# GNU2: There are no sections in this file.
-# GNU2-NEXT: warning: '[[FILE]]': e_shstrndx == SHN_XINDEX, but the section header table is empty
----------------
aokblast wrote:
It still reports. Sorry for the missing.
https://github.com/llvm/llvm-project/pull/165278
More information about the llvm-commits
mailing list