This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: recent testsuite additions
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>, Alan Modra <amodra at gmail dot com>, Takashi Yoshii <yoshii dot takashi at renesas dot com>
- Date: Sat, 23 Aug 2014 11:42:55 +0100
- Subject: RE: recent testsuite additions
- Authentication-results: sourceware.org; auth=none
- References: <20140803233714 dot GL23728 at bubble dot grove dot modra dot org> <6D39441BF12EF246A7ABCE6654B0235320EF659C at LEMAIL01 dot le dot imgtec dot org>
On Sat, 23 Aug 2014, Matthew Fortune wrote:
> I'm working through the test failures that I introduced with the FPXX
> ABI patch and am slightly confused about which MIPS targets are supposed
> to use 'traditional' ELF or not. A number of failures are due to the fact
> that I only fixed up the traditional ELF expected output files but a target
> like mipsisa32-elf is not marked as using traditional ELF in mips.exp.
Thanks for tracking this down.
> I thought the difference between traditional and non-traditional was between
> linux and irix but I'm not sure I have understood the distinction correctly.
For historical reasons plain mips*-elf (or, speaking canonically,
mips*-unknown-elf) targets use the IRIX format. That's the reason why
mips*-sde-elf targets have been added that use the SVR4 (traditional)
format.
And the historical reason is that the SVR4 format was only added sometime
later on in the game, whereas the IRIX format has always been supported by
our MIPS target. The addition happened around ~2000, I still remember
playing with that as I worked on porting glibc 2.2 to the MIPS target and
binutils still only supported the IRIX format. That format turned out
incompatible with some features required by glibc, specifically
Solaris-style linker version scripts, I believe, that rely on the SVR4 way
of symbol sorting, and to address this issue SVR4 format was added to MIPS
BFD (this is also I think the primary reason why glibc 2.1 never happened
for MIPS).
Maciej