[PATCH] D87899: [llvm-readobj/elf] - Stop reporting invalid extended indexes in warnings for unnamed section symbols.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 18 06:16:51 PDT 2020
grimar added inline comments.
================
Comment at: llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test:365-370
+# VERSIONED-SEC-SYM-XINDEX-LLVM: Name: (0)
+# VERSIONED-SEC-SYM-XINDEX-LLVM: Name: foo (12)
+# VERSIONED-SEC-SYM-XINDEX-LLVM: warning: '[[FILE]]': extended symbol index (2) is past the end of the SHT_SYMTAB_SHNDX section of size 0
+# VERSIONED-SEC-SYM-XINDEX-LLVM-NEXT: Symbol {
+# VERSIONED-SEC-SYM-XINDEX-LLVM-NEXT: Name: <?> (0)
+# VERSIONED-SEC-SYM-XINDEX-LLVM: Name: <?> (0)
----------------
jhenderson wrote:
> Do we need all these checks for the test purpose? If so, why do we need comparatively fewer in the GNU version?
GNU version shows the index of symbol (Num: 2). All I wanted is to demostrate that the warning is reported for symbol with index 2.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87899/new/
https://reviews.llvm.org/D87899
More information about the llvm-commits
mailing list