blob: 77f72677108b7c8913f608dbbef9250f02c8bdce [file] [log] [blame]
Rafael Espindola64e67192010-10-20 16:46:08 +00001// 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.
5
6 addl $_GLOBAL_OFFSET_TABLE_, %ebx
7
Rafael Espindola9974b8b2011-04-07 23:51:25 +00008// CHECK: ('sh_name', 0x00000005) # '.text'
Rafael Espindola64e67192010-10-20 16:46:08 +00009// CHECK-NEXT: ('sh_type',
10// CHECK-NEXT: ('sh_flags',
11// CHECK-NEXT: ('sh_addr',
12// CHECK-NEXT: ('sh_offset',
13// CHECK-NEXT: ('sh_size',
14// CHECK-NEXT: ('sh_link',
15// CHECK-NEXT: ('sh_info',
16// CHECK-NEXT: ('sh_addralign',
17// CHECK-NEXT: ('sh_entsize',
18// CHECK-NEXT: ('_section_data', '81c30200 0000')