-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #469 from brenoguim/breno.446
Add one extra page to avoid overlapping with next page if its rounded…
- Loading branch information
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /bin/sh -e | ||
|
||
PATCHELF=$(readlink -f "../src/patchelf") | ||
SCRATCH="scratch/$(basename "$0" .sh)" | ||
READELF=${READELF:-readelf} | ||
|
||
EXEC_NAME="overlapping-segments-after-rounding" | ||
|
||
if test "$(uname -i)" = x86_64 && test "$(uname)" = Linux; then | ||
rm -rf "${SCRATCH}" | ||
mkdir -p "${SCRATCH}" | ||
|
||
cp "${srcdir}/${EXEC_NAME}" "${SCRATCH}/" | ||
cd "${SCRATCH}" | ||
|
||
${PATCHELF} --force-rpath --remove-rpath --output modified1 "${EXEC_NAME}" | ||
|
||
ldd modified1 | ||
|
||
${PATCHELF} --force-rpath --set-rpath "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" --output modified2 modified1 | ||
|
||
ldd modified2 | ||
fi |