• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5bar:
6.globl foo
7foo:
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', 0x0000000000000006)
17// CHECK-NEXT: ('sh_addr', 0x0000000000000000)
18// CHECK-NEXT: ('sh_offset', 0x0000000000000040)
19// CHECK-NEXT: ('sh_size', 0x0000000000000006)
20// CHECK-NEXT: ('sh_link', 0x00000000)
21// CHECK-NEXT: ('sh_info', 0x00000000)
22// CHECK-NEXT: ('sh_addralign', 0x0000000000000004)
23// CHECK-NEXT: ('sh_entsize', 0x0000000000000000)
24// CHECK-NEXT: ('_section_data', 'ebfeebfc ebfa')
25
26// CHECK:       # Symbol 6
27// CHECK-NEXT: (('st_name', 0x00000005) # 'foo'
28