Skip to content

Commit 4217a09

Browse files
committed
only x86_64
1 parent fec25ea commit 4217a09

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

tests/overlapping-segments-after-rounding.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ READELF=${READELF:-readelf}
66

77
EXEC_NAME="overlapping-segments-after-rounding"
88

9-
rm -rf "${SCRATCH}"
10-
mkdir -p "${SCRATCH}"
9+
if test "$(uname -i)" = x86_64; then
10+
rm -rf "${SCRATCH}"
11+
mkdir -p "${SCRATCH}"
1112

12-
cp "${srcdir}/${EXEC_NAME}.xz" ${SCRATCH}/
13-
cd ${SCRATCH}
14-
xz --decompress "${EXEC_NAME}.xz"
13+
cp "${srcdir}/${EXEC_NAME}.xz" ${SCRATCH}/
14+
cd ${SCRATCH}
15+
xz --decompress "${EXEC_NAME}.xz"
1516

16-
${PATCHELF} --force-rpath --remove-rpath --output modified1 "${EXEC_NAME}"
17+
${PATCHELF} --force-rpath --remove-rpath --output modified1 "${EXEC_NAME}"
1718

18-
ldd modified1
19+
ldd modified1
1920

20-
${PATCHELF} --force-rpath --set-rpath "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --output modified2 modified1
21+
${PATCHELF} --force-rpath --set-rpath "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --output modified2 modified1
2122

22-
ldd modified2
23+
ldd modified2
24+
fi

0 commit comments

Comments
 (0)