summaryrefslogtreecommitdiff
path: root/tests/no-gnu-hash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/no-gnu-hash.sh')
-rwxr-xr-xtests/no-gnu-hash.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/no-gnu-hash.sh b/tests/no-gnu-hash.sh
new file mode 100755
index 0000000..a98f459
--- /dev/null
+++ b/tests/no-gnu-hash.sh
@@ -0,0 +1,13 @@
+#! /bin/sh -e
+SCRATCH=scratch/$(basename $0 .sh)
+
+rm -rf ${SCRATCH}
+mkdir -p ${SCRATCH}
+
+cp simple ${SCRATCH}/
+
+strip --remove-section=.gnu.hash ${SCRATCH}/simple
+
+# Check if patchelf handles binaries with GNU_HASH in dynamic section but
+# without .gnu.hash section
+../src/patchelf --set-interpreter /oops ${SCRATCH}/simple