-
Notifications
You must be signed in to change notification settings - Fork 299
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 #359 from lukego/portable_binary
Make ./snabb binary more portable
- Loading branch information
Showing
4 changed files
with
22 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Force an old symbol version on memcpy. | ||
// See: http://www.win.tue.nl/~aeb/linux/misc/gcc-semibug.html | ||
// https://rjpower9000.wordpress.com/2012/04/09/fun-with-shared-libraries-version-glibc_2-14-not-found/ | ||
|
||
#ifndef __ASSEMBLER__ | ||
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); | ||
#endif | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
echo "selftest: ./snabb binary portability" | ||
echo "Scanning for symbols requiring GLIBC > 2.7" | ||
if objdump -T snabb | \ | ||
awk '/GLIBC/ { print $(NF-1), $NF }' | \ | ||
grep -v 'GLIBC_2\.[0-7][\. ]'; then | ||
echo "^^^ Error ^^^" >&2 | ||
echo "(You might just need to 'make clean; make' at the top level.)" | ||
exit 1 | ||
fi | ||
echo "selftest: ok" |