[patch] gloss over more output from readelf in TLS tests

Mike Frysinger vapier@gentoo.org
Sun Sep 9 03:36:00 GMT 2007


the TLS tests run readelf on some objects and use regexes to verify the 
output ... these tend to be pretty fragile though depending on the options 
used to build binutils.  if the gnu hash feature is enabled by default, the 
output will include the .gnu.hash section.  along these lines, ive tweaked 
most of the tls regex files so that things like section/program header count 
as well as their offsets get glossed over.  these tests really just care 
about the tls related output, not what order the sections are in.  this way 
it's much easier to insert/delete lines at will to account for the default 
binutils settings currently in use and to future changes.

2007-09-08  Mike Frysinger  <vapier@gentoo.org>

	* testsuite/ld-alpha/tlsbin.rd: Use [0-9]+ to match section header
	count and 0x[0-9a-f]+ to match section header offset.  Match section
	indexes with \[[ 0-9]+\].  Use [0-9]+ to match program header count
	and 0x[0-9a-f]+ to match program header offset.  Match .dynsym and
	.symtab entry counts with [0-9]+.
	* testsuite/ld-alpha/tlsbinr.rd: Likewise.
	* testsuite/ld-alpha/tlspic.rd: Likewise.
	* testsuite/ld-i386/tlsbin.rd: Likewise.
	* testsuite/ld-i386/tlsbindesc.rd: Likewise.
	* testsuite/ld-i386/tlsdesc.rd: Likewise.
	* testsuite/ld-i386/tlsgdesc.rd: Likewise.
	* testsuite/ld-i386/tlsnopic.rd: Likewise.
	* testsuite/ld-i386/tlspic.rd: Likewise.
	* testsuite/ld-ia64/tlsbin.rd: Likewise.
	* testsuite/ld-ia64/tlspic.rd: Likewise.
	* testsuite/ld-powerpc/tlsexe.r: Likewise.
	* testsuite/ld-powerpc/tlsexe32.r: Likewise.
	* testsuite/ld-powerpc/tlsexetoc.r: Likewise.
	* testsuite/ld-powerpc/tlsso.r: Likewise.
	* testsuite/ld-powerpc/tlsso32.r: Likewise.
	* testsuite/ld-powerpc/tlstocso.r: Likewise.
	* testsuite/ld-s390/tlsbin.rd: Likewise.
	* testsuite/ld-s390/tlsbin_64.rd: Likewise.
	* testsuite/ld-s390/tlspic.rd: Likewise.
	* testsuite/ld-s390/tlspic_64.rd: Likewise.
	* testsuite/ld-sparc/tlssunbin32.rd: Likewise.
	* testsuite/ld-sparc/tlssunbin64.rd: Likewise.
	* testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
	* testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
	* testsuite/ld-sparc/tlssunpic32.rd: Likewise.
	* testsuite/ld-sparc/tlssunpic64.rd: Likewise.
	* testsuite/ld-x86-64/tlsbin.rd: Likewise.
	* testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
	* testsuite/ld-x86-64/tlsdesc.rd: Likewise.
	* testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
	* testsuite/ld-x86-64/tlspic.rd: Likewise.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20070909/eb25a4d3/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-ld-tests-filter-readelf.patch
Type: text/x-diff
Size: 59020 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20070909/eb25a4d3/attachment.bin>


More information about the Binutils mailing list