brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · a56d056 Raw
67 lines · plain
1## Test zero dumping when a data mapping symbol is active.2# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t3# RUN: llvm-objdump -t -d %t | FileCheck %s4 5# CHECK:      SYMBOL TABLE:6# CHECK-NEXT: 0000000000000000 l       .text  0000000000000000 $d7# CHECK-NEXT: 000000000000000c l       .text  0000000000000000 $x8# CHECK-NEXT: 0000000000000010 l       .text  0000000000000000 $d9 10# CHECK:      0000000000000000 <_start>:11# CHECK-NEXT:                 ...12# CHECK-NEXT:        8: 01 00 00 00   .word   0x0000000113# CHECK-NEXT:        c: d503201f      nop14# CHECK-NEXT:                 ...15# CHECK-NEXT:       18: d503201f      nop16# CHECK-NEXT:                 ...17# CHECK-NEXT:       2c: d503201f      nop18# CHECK-NEXT:                 ...19# CHECK-NEXT:       48: d503201f      nop20 21# RUN: llvm-objdump -d -z %t | FileCheck %s --check-prefix=ZERO22 23# ZERO:      0000000000000000 <_start>:24# ZERO-NEXT:        0: 00 00 00 00   .word   0x0000000025# ZERO-NEXT:        4: 00 00 00 00   .word   0x0000000026# ZERO-NEXT:        8: 01 00 00 00   .word   0x0000000127# ZERO-NEXT:        c: d503201f      nop28# ZERO-NEXT:       10: 00 00 00 00   .word   0x0000000029# ZERO-NEXT:       14: 00 00 00 00   .word   0x0000000030# ZERO-NEXT:       18: d503201f      nop31 32## Check we do not skip zeroes blocks if have relocations pointed to these places.33# RUN: llvm-objdump -d -r %t | FileCheck %s --check-prefix=RELOC34 35# RELOC:      0000000000000000 <_start>:36# RELOC-NEXT:                 ...37# RELOC-NEXT:        8: 01 00 00 00   .word   0x0000000138# RELOC-NEXT:        c: d503201f      nop39# RELOC-NEXT:                 ...40# RELOC-NEXT:       18: d503201f      nop41# RELOC-NEXT:       1c: 00 00 00 00   .word   0x0000000042# RELOC-NEXT:                 000000000000001c:  R_AARCH64_ABS64      x143# RELOC-NEXT:                 ...44# RELOC-NEXT:       2c: d503201f      nop45# RELOC-NEXT:                 ...46# RELOC-NEXT:       38: 00 00 00 00   .word   0x0000000047# RELOC-NEXT:                 0000000000000038:  R_AARCH64_ABS64      x248# RELOC-NEXT:                 ...49# RELOC-NEXT:       48: d503201f      nop50 51.globl _start52_start:53  .space 854  .long 155  nop56  .space 857  nop58 59  .quad x160  .space 861  nop62 63  .space 864  .quad x265  .space 866  nop67