Home | History | Annotate | Download | only in ELF
      1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  --dump-section-data | FileCheck  %s
      2 
      3 // Test that we do not relax these.
      4 
      5 bar:
      6 .globl foo
      7 foo:
      8         .set	zed,foo
      9 
     10         jmp bar
     11         jmp foo
     12         jmp zed
     13 
     14 // CHECK: ('sh_name', 0x00000001) # '.text'
     15 // CHECK-NEXT: ('sh_type', 0x00000001)
     16 // CHECK-NEXT: ('sh_flags', 0x00000006)
     17 // CHECK-NEXT: ('sh_addr', 0x00000000)
     18 // CHECK-NEXT: ('sh_offset', 0x00000040)
     19 // CHECK-NEXT: ('sh_size', 0x00000006)
     20 // CHECK-NEXT: ('sh_link', 0x00000000)
     21 // CHECK-NEXT: ('sh_info', 0x00000000)
     22 // CHECK-NEXT: ('sh_addralign', 0x00000004)
     23 // CHECK-NEXT: ('sh_entsize', 0x00000000)
     24 // CHECK-NEXT: ('_section_data', 'ebfeebfc ebfa')
     25 
     26 // CHECK:       # Symbol 0x00000006
     27 // CHECK-NEXT: (('st_name', 0x00000005) # 'foo'
     28