Fixed some bugs.
[llvm/zpu.git] / test / MC / ELF / global-offset.s
blobaa6328760d4494973021ba730a4deac63a6e3bb7
1 // RUN: llvm-mc -filetype=obj -triple i386-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s
3 // We test that _GLOBAL_OFFSET_TABLE_ will account for the two bytes at the
4 // start of the addl.
6 addl $_GLOBAL_OFFSET_TABLE_, %ebx
8 // CHECK: ('sh_name', 0x00000001) # '.text'
9 // 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')