1# RUN: llvm-mc -triple i386-pc-linux-gnu -filetype=obj -o %t %s 2# RUN: elf-dump --dump-section-data < %t | FileCheck %s 3.section .nobits 4.byte 1 5.section .nobits2 6.byte 1 7.section .nobitsfoo 8.byte 1 9.section .init_array 10.byte 1 11.section .init_array2 12.byte 1 13.section .init_arrayfoo 14.byte 1 15.section .fini_array 16.byte 1 17.section .fini_array2 18.byte 1 19.section .fini_arrayfoo 20.byte 1 21.section .preinit_array 22.byte 1 23.section .preinit_array2 24.byte 1 25.section .preinit_arrayfoo 26.byte 1 27.section .note 28.byte 1 29.section .note2 30.byte 1 31.section .notefoo 32.byte 1 33# CHECK: (('sh_name', 0x00000{{...}}) # '.nobits' 34# CHECK-NEXT: ('sh_type', 0x00000001) 35# CHECK: (('sh_name', 0x00000{{...}}) # '.nobits2' 36# CHECK-NEXT: ('sh_type', 0x00000001) 37# CHECK: (('sh_name', 0x00000{{...}}) # '.nobitsfoo' 38# CHECK-NEXT: ('sh_type', 0x00000001) 39# CHECK: (('sh_name', 0x00000{{...}}) # '.init_array' 40# CHECK-NEXT: ('sh_type', 0x0000000e) 41# CHECK: (('sh_name', 0x00000{{...}}) # '.init_array2' 42# CHECK-NEXT: ('sh_type', 0x00000001) 43# CHECK: (('sh_name', 0x00000{{...}}) # '.init_arrayfoo' 44# CHECK-NEXT: ('sh_type', 0x00000001) 45# CHECK: (('sh_name', 0x00000{{...}}) # '.fini_array' 46# CHECK-NEXT: ('sh_type', 0x0000000f) 47# CHECK: (('sh_name', 0x00000{{...}}) # '.fini_array2' 48# CHECK-NEXT: ('sh_type', 0x00000001) 49# CHECK: (('sh_name', 0x00000{{...}}) # '.fini_arrayfoo' 50# CHECK-NEXT: ('sh_type', 0x00000001) 51# CHECK: (('sh_name', 0x00000{{...}}) # '.preinit_array' 52# CHECK-NEXT: ('sh_type', 0x00000010) 53# CHECK: (('sh_name', 0x00000{{...}}) # '.preinit_array2' 54# CHECK-NEXT: ('sh_type', 0x00000001) 55# CHECK: (('sh_name', 0x00000{{...}}) # '.preinit_arrayfoo' 56# CHECK-NEXT: ('sh_type', 0x00000001) 57# CHECK: (('sh_name', 0x00000{{...}}) # '.note' 58# CHECK-NEXT: ('sh_type', 0x00000007) 59# CHECK: (('sh_name', 0x00000{{...}}) # '.note2' 60# CHECK-NEXT: ('sh_type', 0x00000007) 61#CHECK: (('sh_name', 0x00000{{...}}) # '.notefoo' 62# CHECK-NEXT: ('sh_type', 0x00000007) 63