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

H. J. Lu hjl@lucon.org
Wed Jun 21 02:55:00 GMT 2006
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



More information about the Binutils mailing list