Subject: Re: ELF ABI support for sparcV9 binaries.
To: Eduardo Horvath <eeh@turbolinux.com>
From: Todd Vierling <tv@pobox.com>
List: tech-toolchain
Date: 07/10/2000 12:58:26
On Mon, 10 Jul 2000, Eduardo Horvath wrote:
: gcc for sparc has a MULTI_MODE option where a single cc front end driver
: can generate both 32-bit and 64-bit binaries based on a single command
: line option.
MIPS has something very similar; -EB and -EL for big-endian and
little-endian, respectively.
: If you go with what you propose, having 32-bit libraries in
: /emul/netbsd32/usr/lib and 64-bit libraries in /usr/lib or
: /usr/lib/sparcV9, will we be able to configure the gcc driver to be able
: to generate both types of binaries?
Certainly. The specs file has patterns that match based on gcc command line
options for precisely this kind of thing. You can change startfile, libdir,
etc., with a single gcc switch. An example arrangement that does this, and
is already in the gcc tree, is cygwin (-mno-cygwin swaps startfile, libdir,
and even includedir all in one frontend option).
--
-- Todd Vierling (tv@pobox.com)