8336d58
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225783
8336d58
535451a
--- gdb-6.8/gdb/testsuite/gdb.base/prelink.exp.orig	2008-07-12 08:56:43.000000000 +0200
535451a
+++ gdb-6.8/gdb/testsuite/gdb.base/prelink.exp	2008-07-12 08:59:59.000000000 +0200
535451a
@@ -55,7 +55,7 @@ if { [gdb_compile "${srcdir}/${subdir}/$
535451a
 # single new unprelinked library address without wasting the first one/two
535451a
 # memory areas.  We do not care of the efficiency of loading such resulting
535451a
 # exec-shield unfriendly prelinked library.
535451a
-if {[catch "system \"prelink -qNR --no-exec-shield ${libfile}\""] != 0} {
535451a
+if {[catch "system \"/usr/sbin/prelink -qNR --no-exec-shield ${libfile}\""] != 0} {
8336d58
     # Maybe we don't have prelink.
8336d58
     return -1
8336d58
 }
535451a
@@ -96,11 +96,11 @@ if { $found == 0  } {
8336d58
     return 0
8336d58
 }
8336d58
 
8336d58
-if {[catch "system \"prelink -uN ${libfile}\""] != 0} {
8336d58
+if {[catch "system \"/usr/sbin/prelink -uN ${libfile}\""] != 0} {
eb9d945
     untested "${testfile}.so was not prelinked, maybe system libraries are not prelinked?"
8336d58
     return 0
8336d58
 }
535451a
-catch "system \"prelink -qNR --no-exec-shield ${libfile}\""
535451a
+catch "system \"/usr/sbin/prelink -qNR --no-exec-shield ${libfile}\""
8336d58
 
8336d58
 # Start with a fresh gdb
8336d58