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
24 lines
625 B
ArmAsm
24 lines
625 B
ArmAsm
# 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 --check-prefixes=HEADER,CHECK
|
|
# RUN: llvm-readelf -x .a -x .b %t.o | FileCheck %s
|
|
|
|
# HEADER: LoadName:
|
|
# CHECK: {{^$}}
|
|
# CHECK-NEXT: Hex dump of section '.a':
|
|
# CHECK-NEXT: 0x00000000 00
|
|
# CHECK-EMPTY:
|
|
# CHECK-NEXT: Hex dump of section '.b':
|
|
# CHECK-NEXT: 0x00000000 01
|
|
# CHECK-EMPTY:
|
|
# CHECK-NEXT: Hex dump of section '.a':
|
|
# CHECK-NEXT: 0x00000000 02
|
|
|
|
.section .a,"a",@progbits,unique,0
|
|
.byte 0
|
|
.section .b,"a",@progbits
|
|
.byte 1
|
|
.section .a,"a",@progbits,unique,1
|
|
.byte 2
|