Jordan Rupprecht | 835df27 | 2019-02-01 21:04:16 +0000 | [diff] [blame] | 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". |
| 7 | RUN: rm -rf %t/real %t/syms |
Jordan Rupprecht | 614dd19 | 2019-02-01 21:14:21 +0000 | [diff] [blame] | 8 | RUN: mkdir -p %t/real %t/syms |
Jordan Rupprecht | 835df27 | 2019-02-01 21:04:16 +0000 | [diff] [blame] | 9 | RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64 %t/real/prog |
| 10 | RUN: cp %p/Inputs/dwarfdump-test.elf-x86-64.debuglink %t/real/link |
| 11 | RUN: ln -s %t/real/prog %t/syms/dwarfdump-test.elf-x86-64 |
| 12 | RUN: ln -s %t/real/link %t/syms/dwarfdump-test.elf-x86-64.debuglink |
| 13 | |
| 14 | RUN: llvm-symbolizer --obj=%t/syms/dwarfdump-test.elf-x86-64.debuglink 0x40113f | FileCheck %s |
| 15 | |
| 16 | CHECK: main |
| 17 | CHECK-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16 |