summaryrefslogtreecommitdiff
path: root/tests/no-gnu-hash.sh
blob: 0ce93f40f201abc2f8e8ccd48b49abdccbeeb6cd (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