We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 523f401 commit 81f59adCopy full SHA for 81f59ad
tests/Makefile.am
@@ -53,7 +53,8 @@ src_TESTS = \
53
shared-rpath.sh \
54
short-first-segment.sh \
55
empty-note.sh \
56
- set-interpreter-same.sh
+ set-interpreter-same.sh \
57
+ debug-interp.sh
58
59
build_TESTS = \
60
$(no_rpath_arch_TESTS)
tests/debug-interp.sh
@@ -0,0 +1,13 @@
1
+#! /bin/sh -e
2
+SCRATCH=scratch/$(basename "$0" .sh)
3
+OBJCOPY=${OBJCOPY:-objcopy}
4
+
5
+rm -rf "${SCRATCH}"
6
+mkdir -p "${SCRATCH}"
7
8
+cp simple "${SCRATCH}/"
9
10
+${OBJCOPY} --only-keep-debug "${SCRATCH}/simple" "${SCRATCH}/simple.debug"
11
12
+# Check if patchelf handles debug-only executables
13
+../src/patchelf --set-interpreter /oops "${SCRATCH}/simple.debug"
0 commit comments