[lld] [llvm] [llvm-readelf] Print a blank line before the first hex/string dump (PR #85744)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 09:31:37 PDT 2024
================
@@ -1,10 +1,12 @@
# REQUIRES: x86-registered-target
# RUN: llvm-mc -filetype=obj -triple x86_64 %s -o %t.o
-# RUN: llvm-readobj -x .a -x .b %t.o | FileCheck %s
+# RUN: llvm-readobj -x .a -x .b %t.o | FileCheck %s --check-prefixes=HEADER,CHECK
# RUN: llvm-readelf -x .a -x .b %t.o | FileCheck %s
-# CHECK: Hex dump of section '.a':
+# HEADER: LoadName:
----------------
MaskRay wrote:
`llvm-readobj -x .a -x .b` prints two blank lines before the first `Hex dump of section`.
We have to test `LoadName:` to skip the first blank line (not due to hex/string dump).
https://github.com/llvm/llvm-project/pull/85744
More information about the llvm-commits
mailing list