This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch for readelf testsuite
- To: alan at linuxcare dot com dot au
- Subject: Re: Patch for readelf testsuite
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Mon, 2 Apr 2001 13:14:04 +0200
- CC: binutils at sources dot redhat dot com
> Date: Sat, 31 Mar 2001 09:32:59 +1000 (EST)
> From: Alan Modra <alan@linuxcare.com.au>
> There
> are quite a few places where we want a "is this target elf?" test, and it
> would be nice to have just one place to update for odd targets. Hmm,
> better yet, why not assemble a tiny file and look for the magic
> "ELF" string in the object.
It seems framework pieces for file-format tests like this can be
recycled from gcc/testsuite/lib/file-format.exp; bits from the
generic gas testsuite parts could be used for a generic assembly
file.
This would need to be different for linker tests; odd targets
could presumably assemble to ELF and link to another format.
brgds, H-P