m68k calling conventions (long/boring for non-m68k users)

1999-04-04 Thread David Jones
I have installed Debian GNU/Linux on my Amiga 3000. That, along with NetBSD on the HP425, allows me to compare Linux and NetBSD calling conventions. Linux and NetBSD use different assembly language syntax. This is best illustrated with the following C program: double foo(double a) {

-fPIC for m68k/netbsd

1999-04-04 Thread Kiyo Inaba
I've been back to cross compiling for m68k/netbsd. At least today's snap incorrectly specify -fPIC to ltdl.lo. And (as you may know), it generates undefined reference to '_GLOBAL_OFFSET_TABLE_' on this machine. What I specify for configure is m68k-sun-netbsd1.3.1 --with-staticvm

Re: -fPIC for m68k/netbsd

1999-04-04 Thread Kiyo Inaba
I made mistake. The creation of ltdl.lo itself should be OK. Because I also found ltdl.o (which is not compiled with -fPIC flag), but libkaffevm.a includes ltdl.lo rather than ltdl.o, and it is the problem. If I use configuration option with --disable-shared, linking correctly. But I think, even

Re: m68k calling conventions (long/boring for non-m68k users)

1999-04-04 Thread Godmar Back
Dave, Kiyo, I don't really have the time and m68k knowledge to follow your discussions. It appears to me, however, that we should fix the jit to follow the standard C calling conventions on a given architecture and/or OS/assembler combo, unless there's compelling reason not to do so. I still

Re: -fPIC for m68k/netbsd

1999-04-04 Thread David Jones
Kiyo Inaba wrote: | And also I noticed that binutils-2.9.1 derived 'as' on | m68k/netbsd can not handle '-k' flag at all. Did I make any | mistake, or is it the feature? Are you talking about the "as" that comes with NetBSD-1.3.1, or an aftermarket GAS install? The man page for as mentions -k.