Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-objdump -s - | FileCheck %s
      2 
      3 // CHECK: Contents of section .text:
      4 // CHECK-NEXT: 0000 03042502 00000003 04250100 0000ebf7
      5 .text 1
      6 add 1, %eax
      7 jmp label
      8 .subsection
      9 add 2, %eax
     10 label:
     11 
     12 // CHECK-NOT: Contents of section .rela.text:
     13 
     14 // CHECK: Contents of section .data:
     15 // CHECK-NEXT: 0000 01030402 74657374
     16 .data
     17 l0:
     18 .byte 1
     19 .subsection 1+1
     20 l1:
     21 .byte 2
     22 l2:
     23 .subsection l2-l1
     24 .byte l1-l0
     25 .subsection 3
     26 .ascii "test"
     27 .previous
     28 .byte 4
     29 
     30 // CHECK: Contents of section test:
     31 // CHECK-NEXT: 0000 010302
     32 .section test
     33 .byte 1
     34 .pushsection test, 1
     35 .byte 2
     36 .popsection
     37 .byte 3
     38