mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
dbbc693bbe
1) `-x foo` currently dumps one `foo`. This change makes it dump all `foo`. 2) `-x foo -x foo` currently dumps `foo` twice. This change makes it dump `foo` once. In addition, if foo has section index 9, `-x foo -x 9` dumps `foo` once. 3) Give a warning instead of an error if `foo` does not exist. The new behaviors match GNU readelf. Also, print a new line as a separator between two section dumps. GNU readelf uses two lines, but one seems good enough. Reviewed By: grimar, jhenderson Differential Revision: https://reviews.llvm.org/D63475 llvm-svn: 363683
22 lines
550 B
ArmAsm
22 lines
550 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
|
|
# RUN: llvm-readelf -x .a -x .b %t.o | FileCheck %s
|
|
|
|
# CHECK: 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
|