List Info

Thread: Toolchain and ABI




Toolchain and ABI
user name
2007-11-13 00:18:25
I want to use multiple ABI on NetBSD/mips platform.  I could
configure
binutils / gcc (by running mknative) to handle the ABI I
wanted.  That
part was fine.

According to Mattew Green, NetBSD toolchain can build output
only in
the ABI that the toolchain is configured to handle by
default.  For
example, if I configure mips64--netbsd-* to handle N32 by
default, I
can create only N32 NetBSD binaries.  Of course, respective
binutils /
gcc commands can handle multiple ABIs.  It is NetBSD source
tree (make
file mostly) that can't switch ABI.

I'd want to hear the NetBSD solution to this problem.

Masao

P.S. I could make my local tree able to switch ABI by
sprinkling extra
parameters to cc / as / ld in various make files.

Re: Toolchain and ABI
country flaguser name
Germany
2007-11-13 04:01:20
On Tue, Nov 13, 2007 at 03:18:25PM +0900, Masao Uebayashi
wrote:
> I'd want to hear the NetBSD solution to this problem.

Me too!

I think there are three parts to the solution:

 - define a make variable to select abi, like $,
and fix
   some of the share/mk files to provide proper
CFLAGS/LDFLAGS depending
   on this being set
 - define new directories /lib$ and
/usr/lib$, and make
   /lib and /usr/lib a symlink to one of them. Make the mk
files provide
   proper args for this, and/or modify gcc(1) and ld(1) to
know about this
   abi dependend default directories.
 - modify the gcc/binutils configurations to supply multiple
abis

Martin

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )