This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch for readelf testsuite
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Subject: Re: Patch for readelf testsuite
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Mon, 2 Apr 2001 09:27:38 -0700
- Cc: alan at linuxcare dot com dot au, binutils at sources dot redhat dot com
- References: <Pine.LNX.4.21.0103310910530.21533-100000@front.linuxcare.com.au> <200104021114.NAA18606@ignucius.axis.se>
On Mon, Apr 02, 2001 at 01:14:04PM +0200, Hans-Peter Nilsson wrote:
> > 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.
>
I don't like the idea of compiling a pieice of code for each test in
binutils. Binutils has all the information it needs. Someone just has
to spend some time to write it down.
H.J.