Files
clang-p2996/llvm/test/tools/llvm-readobj/ELF/string-dump-multi.s
Fangrui Song 24f22b3f93 [llvm-readelf] Print a blank line for the first hex/string dump
GNU readelf prints a blank line before the first hex/string dump, which
serves as a separator when there are other dump operations. Port the
behavior.

Pull Request: https://github.com/llvm/llvm-project/pull/85744
2024-03-19 09:38:55 -07:00

24 lines
634 B
ArmAsm

# REQUIRES: x86-registered-target
# RUN: llvm-mc -filetype=obj -triple x86_64 %s -o %t.o
# RUN: llvm-readobj -p .a -p .b %t.o | FileCheck %s --check-prefixes=HEADER,CHECK
# RUN: llvm-readelf -p .a -p .b %t.o | FileCheck %s
# HEADER: LoadName:
# CHECK: {{^$}}
# CHECK-NEXT: String dump of section '.a':
# CHECK-NEXT: [ 0] 0
# CHECK-EMPTY:
# CHECK-NEXT: String dump of section '.b':
# CHECK-NEXT: [ 0] 1
# CHECK-EMPTY:
# CHECK-NEXT: String dump of section '.a':
# CHECK-NEXT: [ 0] 2
.section .a,"a",@progbits,unique,0
.asciz "0"
.section .b,"a",@progbits
.asciz "1"
.section .a,"a",@progbits,unique,1
.asciz "2"