File: debug-names-nonames.s

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,999,584 kB
  • sloc: cpp: 6,951,724; ansic: 1,486,157; asm: 913,598; python: 232,059; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,079; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,430; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (33 lines) | stat: -rw-r--r-- 1,251 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# REQUIRES: x86
# RUN: rm -rf %t && mkdir %t && cd %t
# RUN: llvm-mc -filetype=obj -triple=x86_64 %S/Inputs/debug-names-a.s -o a.o
# RUN: echo '.globl foo; foo:' | llvm-mc -filetype=obj -triple=x86_64 - -o b0.o

# RUN: ld.lld --debug-names a.o b0.o -o out0
# RUN: llvm-dwarfdump -debug-names out0 | FileCheck %s --check-prefix=DWARF

# DWARF:      .debug_names contents:
# DWARF-NEXT: Name Index @ 0x0 {
# DWARF-NEXT:   Header {
# DWARF-NEXT:     Length: 0x6F
# DWARF-NEXT:     Format: DWARF32
# DWARF-NEXT:     Version: 5
# DWARF-NEXT:     CU count: 1
# DWARF-NEXT:     Local TU count: 0
# DWARF-NEXT:     Foreign TU count: 0
# DWARF-NEXT:     Bucket count: 2
# DWARF-NEXT:     Name count: 2
# DWARF-NEXT:     Abbreviations table size: 0x15
# DWARF-NEXT:     Augmentation: 'LLVM0700'
# DWARF-NEXT:   }
# DWARF-NEXT:   Compilation Unit offsets [
# DWARF-NEXT:     CU[0]: 0x00000000
# DWARF-NEXT:   ]

## Test both files without .debug_names.
# RUN: echo '.globl _start; _start:' | llvm-mc -filetype=obj -triple=x86_64 - -o a0.o
# RUN: ld.lld --debug-names a0.o b0.o -o out1
# RUN: llvm-readelf -SW out1 | FileCheck %s --check-prefix=ELF

# ELF:      Name              Type     Address          Off      Size   ES Flg Lk Inf Al
# ELF-NOT: .debug_names