[lld] [llvm] [llvm-readelf] Print more information for RELR (PR #89162)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 19 00:43:48 PDT 2024
================
@@ -240,12 +245,15 @@ Symbols:
# RUN: llvm-readelf --relocations --raw-relr %t2.has.link 2>&1 | \
# RUN: FileCheck -DFILE=%t2.has.link --check-prefix=RAW-GNU2 %s
-# RUN: yaml2obj --docnum=3 %s -o %t3
-# RUN: llvm-readelf -r %t3 2>&1 | FileCheck -DFILE=%t3 --check-prefix=GNU3 %s
-
## .symtab is invalid. Check we report a warning and print entries without symbolization.
+# RUN: yaml2obj --docnum=3 -DENTSIZE=1 %s -o %t3.err1
+# RUN: llvm-readelf -r %t3.err1 2>&1 | FileCheck -DFILE=%t3.err1 --check-prefixes=GNU3,GNU3-ERR1 %s
----------------
jh7370 wrote:
If I'm not mistaken, these aren't actually testing that no symbolization occurred, since there could be other stuff after the checked-for output on each line. You'll need `--match-full-lines`. Same goes for other "not symbolized" cases.
https://github.com/llvm/llvm-project/pull/89162
More information about the llvm-commits
mailing list