• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | elf-dump  --dump-section-data | FileCheck  %s
2
3// We test that _GLOBAL_OFFSET_TABLE_ will account for the two bytes at the
4// start of the addl/leal.
5
6        addl    $_GLOBAL_OFFSET_TABLE_, %ebx
7        leal    _GLOBAL_OFFSET_TABLE_(%ebx), %ebx
8
9// CHECK:      ('sh_name', 0x00000005) # '.text'
10// CHECK-NEXT: ('sh_type',
11// CHECK-NEXT: ('sh_flags',
12// CHECK-NEXT: ('sh_addr',
13// CHECK-NEXT: ('sh_offset',
14// CHECK-NEXT: ('sh_size',
15// CHECK-NEXT: ('sh_link',
16// CHECK-NEXT: ('sh_info',
17// CHECK-NEXT: ('sh_addralign',
18// CHECK-NEXT: ('sh_entsize',
19// CHECK-NEXT: ('_section_data', '81c30200 00008d9b 02000000')
20