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