Subject: Re: Boot code of linuxppc v. netbsd
To: None <youngdrow@geocities.com>
From: Kazuki Sakamoto <sakamoto@cec.co.jp>
List: port-powerpc
Date: 01/09/1998 12:42:29
 > BTW, isn't the cross-compiler supposed to define __powerpc__ ?  It doesn't
 > seem to be, to me....

cross-compiler directory/lib/gcc-lib/powerpc-elf-netbsd/2.7.2.3/specs
=========================================
*asm:
 %| %{fpic:-k} %{fPIC:-k -K}

*asm_final:
%{pipe:-}

*cpp:
%{posix:-D_POSIX_SOURCE}

*cc1:
-mmultiple

*cc1plus:


*endfile:
%{!shared:%{!p:crtend%O%s}}

*link:
%{!nostdlib:%{!r*:%{!e*:-e _start}}} -dc -dp %{static:-Bstatic} %{assert*}

*lib:
%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}

*libgcc:
%{!shared:%{!symbolic:-lgcc}}

*startfile:
%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s crtbegin%O%s}}}

*switches_need_spaces:


*signed_char:
%{!fsigned-char:-D__CHAR_UNSIGNED__}

*predefines:
-D__powerpc__ -D__PPC__ -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(powerpc) -Amachine(powerpc)

*cross_compile:
1

*multilib:
. ;

=========================================

Kazuki Sakamoto
sakamoto@cec.co.jp