-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cross_prelink_staging' into master_staging
Signed-off-by: Mark Hatle <[email protected]>
- Loading branch information
Showing
22 changed files
with
102 additions
and
24 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 |
---|---|---|
@@ -1,3 +1,19 @@ | ||
2016-22-28 Mark Hatle <[email protected]> | ||
* Merge with cross_prelink | ||
|
||
2016-03-18 Donn Seeley <[email protected]> | ||
* testsuite/order: Add test to verify prelink/prelink-rtld resolution | ||
order | ||
|
||
2016-03-18 Mark Hatle <[email protected]> | ||
* src/dso.c: Fix compilation warning | ||
|
||
2016-03-10 Mark Hatle <[email protected]> | ||
* configure.ac, m4/libelf.m4, doc/Makefile.am, gelf/Makefile.am, | ||
gelfx/Makefile.am, gelfx32/Makefile.am, patches/Makefile.am, | ||
src/Makefile.am, testsuite/Makefile.am: | ||
Update to avoid autoconf/automake warnings | ||
|
||
2015-10-29 Mark Hatle <[email protected]> | ||
Kyle McMartin <[email protected]> | ||
Jakub Jelinek <[email protected]> | ||
|
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
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
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
## Process this file with automake to create Makefile.in | ||
|
||
AUTOMAKE_OPTIONS = 1.4 gnu | ||
|
||
noinst_HEADERS = gelfx.h |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
## Process this file with automake to create Makefile.in | ||
|
||
AUTOMAKE_OPTIONS = 1.4 gnu | ||
|
||
noinst_HEADERS = gelfx.h |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ dnl Detect it. | |
|
||
dnl Written by Jakub Jelinek <[email protected]>. | ||
|
||
AC_DEFUN(AC_LIBELF_SXWORD, | ||
AC_DEFUN([AC_LIBELF_SXWORD], | ||
[AC_TRY_RUN([ | ||
#include <errno.h> | ||
#include <fcntl.h> | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
## Process this file with automake to create Makefile.in | ||
|
||
AUTOMAKE_OPTIONS = 1.4 gnu | ||
|
||
EXTRA_DIST = libelf-0.7.0.patch libelf-0.7.0-hash.patch linux-2.4.10.patch |
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
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
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,15 @@ | ||
#include <stdio.h> | ||
#include "orderlib1.h" | ||
#include "orderlib.h" | ||
|
||
int | ||
main() | ||
{ | ||
int rc = 0; | ||
rc += orderlib1(); /* 10 */ | ||
rc += value(); | ||
|
||
printf("rc = %d (expect 6010)\n", rc); | ||
|
||
return (rc != 6010); | ||
} |
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,24 @@ | ||
#!/bin/bash | ||
. `dirname $0`/functions.sh | ||
rm -f order orderlib*.so order.log | ||
rm -f prelink.cache | ||
|
||
# Need a sysroot for this... | ||
$CC -shared -O2 -fpic -o orderlib3.so $srcdir/orderlib3.c | ||
$CC -shared -O2 -fpic -o orderlib2.so $srcdir/orderlib2.c | ||
$CC -shared -O2 -fpic -o orderlib1.so $srcdir/orderlib1.c orderlib3.so | ||
$CC -shared -O2 -fpic -o orderlib.so $srcdir/orderlib.c orderlib1.so orderlib2.so orderlib3.so | ||
BINS="order" | ||
LIBS="orderlib.so orderlib1.so orderlib2.so orderlib3.so" | ||
$CCLINK -o order $srcdir/order.c -Wl,-rpath-link,. orderlib.so orderlib3.so | ||
|
||
: > order.log | ||
LD_LIBRARY_PATH=. ./order >> order.log || exit 1 | ||
#exit 1 | ||
#savelibs | ||
echo $PRELINK ${PRELINK_OPTS--vm} ./order >> order.log | ||
$PRELINK ${PRELINK_OPTS--vm} ./order >> order.log 2>&1 || exit 2 | ||
grep -q ^`echo $PRELINK | sed 's/ .*$/: /'` order.log && exit 3 | ||
LD_LIBRARY_PATH=. ./order >> order.log || exit 4 | ||
# So that it is not prelinked again | ||
chmod -x ./order |
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,10 @@ | ||
#include "orderlib.h" | ||
#include "orderlib1.h" | ||
|
||
int orderlib1(void) | ||
{ | ||
int rc = 0; | ||
rc += value(); | ||
rc += value1(); | ||
return rc; | ||
} |
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,2 @@ | ||
int value(void); | ||
int value1(void); |
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,6 @@ | ||
#include "orderlib.h" | ||
|
||
int value1(void) | ||
{ | ||
return 10; | ||
} |
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 @@ | ||
int orderlib1(void); |
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,6 @@ | ||
#include "orderlib.h" | ||
|
||
int value(void) | ||
{ | ||
return 200; | ||
} |
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,6 @@ | ||
#include "orderlib.h" | ||
|
||
int value(void) | ||
{ | ||
return 3000; | ||
} |