• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: shell
2# Ensure that no realpath assumptions are made about .gnu_debuglink paths.
3
4# Copy inputs to some other location with arbitrary names, with the original
5# filenames just being symlinks to the copies. Real files go in the "real" dir,
6# symlinks (with original names) go in "syms".
7RUN: rm -rf %t/real %t/syms
8RUN: mkdir -p %t/real %t/syms
9RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64 %t/real/prog
10RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64.debuglink %t/real/link
11RUN: ln -s %t/real/prog %t/syms/dwarfdump-test.elf-x86-64
12RUN: ln -s %t/real/link %t/syms/dwarfdump-test.elf-x86-64.debuglink
13
14RUN: llvm-symbolizer --obj=%t/syms/dwarfdump-test.elf-x86-64.debuglink 0x40113f | FileCheck %s
15
16CHECK:       main
17CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
18