summaryrefslogtreecommitdiff
path: root/tests/no-gnu-hash.sh
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2021-12-11 09:57:42 -0300
committerFelipe Sateler <fsateler@debian.org>2021-12-11 09:57:42 -0300
commit9b7476ece31032443b23d0c29d3e2f8430ccd56f (patch)
tree3aa609323599e9a26284ae51c4b01f1511cf35d4 /tests/no-gnu-hash.sh
parent77df926e47945fe90439dc14392a03adcb23d40c (diff)
parent33f8b793d0121f1c837bc6f8df493059b060edd2 (diff)
Update upstream source from tag 'upstream/0.14.3'
Update to upstream version '0.14.3' with Debian dir 5fce376ddd9db80ca6268e7f6b779f9f1a71514b
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