This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix ld-elf/tls_common.exp fpr 32bit targets


32bit targets don't have "0x000000 0x000004 R ". This patch uses
regexp instead of string to match readelf output.


H.J.
----
2006-06-20  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-elf/tls_common.exp: Use regexp instead of string to match
	readelf output.

--- ld/testsuite/ld-elf/tls_common.exp.zero	2006-06-20 09:36:18.000000000 -0700
+++ ld/testsuite/ld-elf/tls_common.exp	2006-06-20 13:33:08.000000000 -0700
@@ -61,7 +61,7 @@ if { ![ld_simple_link $ld tmpdir/tls_com
 
 send_log "$READELF -l --wide tmpdir/tls_common\n"
 catch "exec $READELF -l --wide tmpdir/tls_common" readelf_output
-if ![string match "*TLS*0x000000 0x000004 R *" $readelf_output] then {
+if ![regexp ".*TLS.*0x0+0 0x0+4 R .*" $readelf_output] then {
     send_log "$readelf_output\n"
     fail "tls_common"
     return


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]