[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / DebugInfo / X86 / dwarfdump-rela-dwo.s
blobcff1331f491f06d1391189078a3271d3f8f4667b
1 # Test objective to verify warning is printed if DWO secton has relocations.
3 # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.o
4 # RUN: llvm-dwarfdump --debug-info %t.o | FileCheck %s
5 # RUN: llvm-dwarfdump --debug-info %t.o 2> %t.txt
6 # RUN: cat %t.txt | FileCheck %s --check-prefix=PART2
8 .section .debug_str.dwo,"MSe",@progbits,1
9 .dwo_producer:
10 .asciz "Handmade DWO producer"
11 .dwo_CU_5:
12 .asciz "V5_dwo_compile_unit"
14 .section .debug_str_offsets.dwo,"e",@progbits
15 .long Lstr_offsets_end-Lstr_offsets_start # Length of String Offsets Set
16 Lstr_offsets_start:
17 .short 5
18 .short 0
19 .long .dwo_producer-.debug_str.dwo
20 .long .dwo_CU_5-.debug_str.dwo
21 Lstr_offsets_end:
23 # And a .dwo copy for the .dwo sections.
24 .section .debug_abbrev.dwo,"e",@progbits
25 .byte 0x01 # Abbrev code
26 .byte 0x11 # DW_TAG_compile_unit
27 .byte 0x00 # DW_CHILDREN_no
28 .byte 0x25 # DW_AT_producer
29 .byte 0x0e # DW_FORM_strp
30 .byte 0x03 # DW_AT_name
31 .byte 0x25 # DW_FORM_strx1
32 .byte 0x00 # EOM(1)
33 .byte 0x00 # EOM(2)
35 .section .debug_info.dwo,"e",@progbits
36 # CHECK-LABEL: .debug_info.dwo
38 # DWARF v5 split CU header.
39 .long CU_split_5_end-CU_split_5_version # Length of Unit
40 CU_split_5_version:
41 .short 5 # DWARF version number
42 .byte 5 # DWARF Unit Type
43 .byte 8 # Address Size (in bytes)
44 .long 0 # Offset Into Abbrev. Section
45 .quad 0x5a # DWO ID
46 # The split compile-unit DIE, with DW_AT_producer, DW_AT_name, DW_AT_stmt_list.
47 .byte 1
48 .long .dwo_producer
49 .byte 1
50 .byte 0 # NULL
51 CU_split_5_end:
53 # CHECK: 0x00000000: Compile Unit: length = 0x00000017, format = DWARF32, version = 0x0005, unit_type = DW_UT_split_compile, abbr_offset = 0x0000, addr_size = 0x08, DWO_id = 0x000000000000005a (next unit at 0x0000001b)
54 # CHECK: 0x00000014: DW_TAG_compile_unit
55 # CHECK-NEXT: DW_AT_producer ("Handmade DWO producer")
56 # CHECK-NEXT: DW_AT_name ("V5_dwo_compile_unit")
57 # PART2: warning: Unexpected relocations for dwo section rela.debug_info.dwo