blob: d6be5efc812e2e2fe2b53c4d9cb90f8d16b39210 [file] [log] [blame]
Jordan Rupprecht835df272019-02-01 21:04:16 +00001# 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 %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