34 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t && mkdir %t && cd %t3# RUN: llvm-mc -filetype=obj -triple=x86_64 %S/Inputs/debug-names-a.s -o a.o4# RUN: echo '.globl foo; foo:' | llvm-mc -filetype=obj -triple=x86_64 - -o b0.o5 6# RUN: ld.lld --debug-names a.o b0.o -o out07# RUN: llvm-dwarfdump -debug-names out0 | FileCheck %s --check-prefix=DWARF8 9# DWARF: .debug_names contents:10# DWARF-NEXT: Name Index @ 0x0 {11# DWARF-NEXT: Header {12# DWARF-NEXT: Length: 0x6F13# DWARF-NEXT: Format: DWARF3214# DWARF-NEXT: Version: 515# DWARF-NEXT: CU count: 116# DWARF-NEXT: Local TU count: 017# DWARF-NEXT: Foreign TU count: 018# DWARF-NEXT: Bucket count: 219# DWARF-NEXT: Name count: 220# DWARF-NEXT: Abbreviations table size: 0x1521# DWARF-NEXT: Augmentation: 'LLVM0700'22# DWARF-NEXT: }23# DWARF-NEXT: Compilation Unit offsets [24# DWARF-NEXT: CU[0]: 0x0000000025# DWARF-NEXT: ]26 27## Test both files without .debug_names.28# RUN: echo '.globl _start; _start:' | llvm-mc -filetype=obj -triple=x86_64 - -o a0.o29# RUN: ld.lld --debug-names a0.o b0.o -o out130# RUN: llvm-readelf -SW out1 | FileCheck %s --check-prefix=ELF31 32# ELF: Name Type Address Off Size ES Flg Lk Inf Al33# ELF-NOT: .debug_names34