[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r21112 - in /trunk/libc: ChangeLog.eglibc elf/Makefile elf/tst-rtld-load-self.sh



Author: joseph
Date: Wed Oct 10 21:20:58 2012
New Revision: 21112

Log:
	* elf/Makefile ($(objpfx)tst-rtld-load-self.out): Pass
	$(cross-test-wrapper) and $(..)scripts/run-with-env.sh to script.
	* elf/tst-rtld-load-self.sh: Use wrappers to run dynamic linker.

Modified:
    trunk/libc/ChangeLog.eglibc
    trunk/libc/elf/Makefile
    trunk/libc/elf/tst-rtld-load-self.sh

Modified: trunk/libc/ChangeLog.eglibc
==============================================================================
--- trunk/libc/ChangeLog.eglibc (original)
+++ trunk/libc/ChangeLog.eglibc Wed Oct 10 21:20:58 2012
@@ -1,3 +1,9 @@
+2012-10-10  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* elf/Makefile ($(objpfx)tst-rtld-load-self.out): Pass
+	$(cross-test-wrapper) and $(..)scripts/run-with-env.sh to script.
+	* elf/tst-rtld-load-self.sh: Use wrappers to run dynamic linker.
+
 2012-09-27  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* bits/predefs.h, ports/sysdeps/arm/bits/predefs.h: Put

Modified: trunk/libc/elf/Makefile
==============================================================================
--- trunk/libc/elf/Makefile (original)
+++ trunk/libc/elf/Makefile Wed Oct 10 21:20:58 2012
@@ -721,7 +721,7 @@
 		$(..)scripts/run-with-env.sh
 
 $(objpfx)tst-rtld-load-self.out: tst-rtld-load-self.sh $(objpfx)ld.so
-	$(SHELL) $^ > $@
+	$(SHELL) $^ "$(cross-test-wrapper)" $(..)scripts/run-with-env.sh > $@
 
 $(objpfx)initfirst: $(libdl)
 $(objpfx)initfirst.out: $(objpfx)firstobj.so

Modified: trunk/libc/elf/tst-rtld-load-self.sh
==============================================================================
--- trunk/libc/elf/tst-rtld-load-self.sh (original)
+++ trunk/libc/elf/tst-rtld-load-self.sh Wed Oct 10 21:20:58 2012
@@ -21,25 +21,28 @@
 set -e
 
 rtld=$1
+cross_test_wrapper="$2"
+run_with_env="$3"
 result=0
 
 echo '# normal mode'
-$rtld $rtld 2>&1 && rc=0 || rc=$?
+${cross_test_wrapper} $rtld $rtld 2>&1 && rc=0 || rc=$?
 echo "# exit status $rc"
 test $rc -le 127 || result=1
 
 echo '# list mode'
-$rtld --list $rtld 2>&1 && rc=0 || rc=$?
+${cross_test_wrapper} $rtld --list $rtld 2>&1 && rc=0 || rc=$?
 echo "# exit status $rc"
 test $rc -eq 0 || result=1
 
 echo '# verify mode'
-$rtld --verify $rtld 2>&1 && rc=0 || rc=$?
+${cross_test_wrapper} $rtld --verify $rtld 2>&1 && rc=0 || rc=$?
 echo "# exit status $rc"
 test $rc -eq 2 || result=1
 
 echo '# trace mode'
-LD_TRACE_LOADED_OBJECTS=1 $rtld $rtld 2>&1 && rc=0 || rc=$?
+EGLIBC_LD_TRACE_LOADED_OBJECTS=1 ${cross_test_wrapper} ${run_with_env} \
+    $rtld $rtld 2>&1 && rc=0 || rc=$?
 echo "# exit status $rc"
 test $rc -eq 0 || result=1
 

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits