47 lines · plain
1RUN: rm -rf %t && split-file %s %t && cd %t2RUN: llvm-mc --triple=x86_64-unknown-linux --filetype=obj --split-dwarf-file=%t/v5.dwo -dwarf-version=5 %t/v5.s -o %t/v5.o3RUN: llvm-mc --triple=x86_64-unknown-linux --filetype=obj --split-dwarf-file=%t/v4.dwo -dwarf-version=4 %t/v4.s -o %t/v4.o4RUN: not llvm-dwp %t/v5.dwo %t/v4.dwo -o main.dwp 2>&1 | FileCheck %s5 6CHECK: error: incompatible DWARF compile unit version: {{.*}}v4.dwo (version 4) and {{.*}}v5.dwo (version 5)7 8#--- v5.s9 .section .debug_info.dwo,"e",@progbits10 .long .Ldebug_info_dwo_end2-.Ldebug_info_dwo_start2 # Length of Unit11.Ldebug_info_dwo_start2:12 .short 5 # DWARF version number13 .byte 5 # DWARF Unit Type (DW_UT_split_compile)14 .byte 8 # Address Size (in bytes)15 .long 0 # Offset Into Abbrev. Section16 .quad 115294384175121145417 .byte 1 # Abbrev [1] DW_TAG_compile_unit18.Ldebug_info_dwo_end2:19 .section .debug_abbrev.dwo,"e",@progbits20 .byte 1 # Abbreviation Code21 .byte 17 # DW_TAG_compile_unit22 .byte 0 # DW_CHILDREN_no23 .byte 0 # EOM(1)24 .byte 0 # EOM(2)25 .byte 2 # Abbreviation Code26 .byte 65 # DW_TAG_type_unit27 .byte 1 # DW_CHILDREN_yes28 .byte 0 # EOM29 .byte 0 # EOM30 .byte 4 # Abbreviation Code31 .byte 65 # DW_TAG_type_unit32 .byte 1 # DW_CHILDREN_yes33 .byte 0 # EOM34 .byte 0 # EOM35 .byte 0 # EOM36 37#--- v4.s38 .section .debug_info.dwo,"e",@progbits39 .long .Ldebug_info_dwo_end2-.Ldebug_info_dwo_start2 # Length of Unit40.Ldebug_info_dwo_start2:41 .short 4 # DWARF version number42 .long 0 # Offset Into Abbrev. Section43 .byte 8 # Address Size (in bytes)44 .byte 1 # Abbrev [1] DW_TAG_compile_unit45 .quad -6619898858003450627 # DW_AT_GNU_dwo_id46.Ldebug_info_dwo_end2:47