1 # RUN: yaml2obj %s > %t
3 ## Check we do not skip zeroes blocks if have relocations pointed to these places.
4 # RUN: llvm-objdump -D --reloc %t
6 # CHECK: 0000000000000000 .rodata:
7 # CHECK-NEXT: 0: 00 00 addb %al, (%rax)
8 # CHECK-NEXT: 0000000000000000: R_X86_64_64 *ABS*
9 # CHECK-NEXT: 2: 00 00 addb %al, (%rax)
10 # CHECK-NEXT: 4: 00 00 addb %al, (%rax)
11 # CHECK-NEXT: 6: 00 00 addb %al, (%rax)
12 # CHECK-NEXT: 8: 00 00 addb %al, (%rax)
13 # CHECK-NEXT: 0000000000000008: R_X86_64_64 *ABS*
14 # CHECK-NEXT: a: 00 00 addb %al, (%rax)
15 # CHECK-NEXT: c: 00 00 addb %al, (%rax)
16 # CHECK-NEXT: e: 00 00 addb %al, (%rax)
18 ## Check that without -reloc all zeroes would be omitted.
19 # RUN: llvm-objdump -D %t | FileCheck %s --check-prefix=SKIP
21 # SKIP: 0000000000000000 .rodata:
24 # SKIP-NEXT: Disassembly of section .rela.rodata:
36 AddressAlign: 0x0000000000000001
37 Content: '00000000000000000000000000000000'
40 Flags: [ SHF_INFO_LINK ]
42 AddressAlign: 0x0000000000000008
43 EntSize: 0x0000000000000018
46 - Offset: 0x0000000000000000
49 - Offset: 0x0000000000000008