2010-10-20 16:46:08 +00:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s
|
|
|
|
|
|
|
|
// We test that _GLOBAL_OFFSET_TABLE_ will account for the two bytes at the
|
2011-07-20 19:36:11 +00:00
|
|
|
// start of the addl/leal.
|
2010-10-20 16:46:08 +00:00
|
|
|
|
|
|
|
addl $_GLOBAL_OFFSET_TABLE_, %ebx
|
2011-07-20 19:36:11 +00:00
|
|
|
leal _GLOBAL_OFFSET_TABLE_(%ebx), %ebx
|
2010-10-20 16:46:08 +00:00
|
|
|
|
2011-04-07 23:51:25 +00:00
|
|
|
// CHECK: ('sh_name', 0x00000005) # '.text'
|
2010-10-20 16:46:08 +00:00
|
|
|
// CHECK-NEXT: ('sh_type',
|
|
|
|
// CHECK-NEXT: ('sh_flags',
|
|
|
|
// CHECK-NEXT: ('sh_addr',
|
|
|
|
// CHECK-NEXT: ('sh_offset',
|
|
|
|
// CHECK-NEXT: ('sh_size',
|
|
|
|
// CHECK-NEXT: ('sh_link',
|
|
|
|
// CHECK-NEXT: ('sh_info',
|
|
|
|
// CHECK-NEXT: ('sh_addralign',
|
|
|
|
// CHECK-NEXT: ('sh_entsize',
|
2011-07-20 19:36:11 +00:00
|
|
|
// CHECK-NEXT: ('_section_data', '81c30200 00008d9b 02000000')
|