blob: b12542ea0460028d7923919cb2a99a1f73d85174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /bin/sh -e
SCRATCH=scratch/$(basename "$0" .sh)
STRIP=${STRIP:-strip}
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"
|