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. 5 6 addl $_GLOBAL_OFFSET_TABLE_, %ebx 7 8 // CHECK: ('sh_name', 0x00000005) # '.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') 19