[ELF] Make section member orders consistent
[llvm-project.git] / lld / test / ELF / gdb-index-noranges.s
blob12080642e6cd30e736d379443a4d5004cda11be4
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
4 ## Input is reduced from following code and invocation:
5 ## clang++ -gsplit-dwarf -c test.ii -o test.s -S
6 ## clang version: 6.0.0 (trunk 318293)
7 ##
8 ## test.ii:
9 ## int a;
11 ## Debug information does not contain any address ranges.
12 ## We crashed in that case. Check we don't.
13 # RUN: ld.lld --gdb-index %t1.o -o /dev/null
15 .section .debug_str,"MS",@progbits,1
16 .Lskel_string0:
17 .asciz "t.dwo"
18 .Lskel_string1:
19 .asciz "path"
21 .section .debug_abbrev,"",@progbits
22 .byte 1 # Abbreviation Code
23 .byte 17 # DW_TAG_compile_unit
24 .byte 0 # DW_CHILDREN_no
25 .byte 16 # DW_AT_stmt_list
26 .byte 23 # DW_FORM_sec_offset
27 .ascii "\260B" # DW_AT_GNU_dwo_name
28 .byte 14 # DW_FORM_strp
29 .byte 27 # DW_AT_comp_dir
30 .byte 14 # DW_FORM_strp
31 .ascii "\261B" # DW_AT_GNU_dwo_id
32 .byte 7 # DW_FORM_data8
33 .ascii "\263B" # DW_AT_GNU_addr_base
34 .byte 23 # DW_FORM_sec_offset
35 .byte 0 # EOM(1)
36 .byte 0 # EOM(2)
37 .byte 0 # EOM(3)
39 .section .debug_info,"",@progbits
40 .long 32 # Length of Unit
41 .short 4 # DWARF version number
42 .long .debug_abbrev # Offset Into Abbrev. Section
43 .byte 8 # Address Size (in bytes)
44 .byte 1 # Abbrev [1] 0xb:0x19 DW_TAG_compile_unit
45 .long 0 # DW_AT_stmt_list
46 .long .Lskel_string0 # DW_AT_GNU_dwo_name
47 .long .Lskel_string1 # DW_AT_comp_dir
48 .quad -3824446529333676116 # DW_AT_GNU_dwo_id
49 .long 0 # DW_AT_GNU_addr_base