Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck %s
      2 
      3 // Test that we get optimal nops in text
      4     .text
      5 f0:
      6     .long 0
      7     .align  8, 0x00000090
      8     .long 0
      9     .align  8
     10 
     11 // But not in another section
     12     .data
     13     .long 0
     14     .align  8, 0x00000090
     15     .long 0
     16     .align  8
     17 
     18 // CHECK:        Section {
     19 // CHECK:          Name: .text
     20 // CHECK-NEXT:     Type: SHT_PROGBITS
     21 // CHECK-NEXT:     Flags [
     22 // CHECK-NEXT:       SHF_ALLOC
     23 // CHECK-NEXT:       SHF_EXECINSTR
     24 // CHECK-NEXT:     ]
     25 // CHECK-NEXT:     Address:
     26 // CHECK-NEXT:     Offset:
     27 // CHECK-NEXT:     Size: 16
     28 // CHECK-NEXT:     Link: 0
     29 // CHECK-NEXT:     Info: 0
     30 // CHECK-NEXT:     AddressAlignment: 8
     31 // CHECK-NEXT:     EntrySize: 0
     32 // CHECK-NEXT:     SectionData (
     33 // CHECK-NEXT:       0000: 00000000 0F1F4000 00000000 0F1F4000
     34 // CHECK-NEXT:     )
     35 // CHECK-NEXT:   }
     36 
     37 // CHECK:        Section {
     38 // CHECK:          Name: .data
     39 // CHECK-NEXT:     Type: SHT_PROGBITS
     40 // CHECK-NEXT:     Flags [
     41 // CHECK-NEXT:       SHF_ALLOC
     42 // CHECK-NEXT:       SHF_WRITE
     43 // CHECK-NEXT:     ]
     44 // CHECK-NEXT:     Address:
     45 // CHECK-NEXT:     Offset:
     46 // CHECK-NEXT:     Size: 16
     47 // CHECK-NEXT:     Link: 0
     48 // CHECK-NEXT:     Info: 0
     49 // CHECK-NEXT:     AddressAlignment: 8
     50 // CHECK-NEXT:     EntrySize: 0
     51 // CHECK-NEXT:     SectionData (
     52 // CHECK-NEXT:       0000: 00000000 90909090 00000000 00000000
     53 // CHECK-NEXT:     )
     54 // CHECK-NEXT:   }
     55