public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* powerpc-coff target
@ 2000-08-04  5:24 Peter Schwing
  2000-08-04  8:03 ` Joel Sherrill
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Schwing @ 2000-08-04  5:24 UTC (permalink / raw)
  To: crossgcc

Is it possible to generate a cross compiler with a powerpc-coff target.
It will be used for an embedded system which can load COFF files using
AIX conventions at runtime. gcc (2.95.2) and ld (binutils 2.10) refuse
to build for such a target. Is there a special target I should select?
Are there any other ideas?

Peter Schwing
schwing(at)rbg.informatik.tu-darmstadt.de

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: powerpc-coff target
  2000-08-04  5:24 powerpc-coff target Peter Schwing
@ 2000-08-04  8:03 ` Joel Sherrill
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Sherrill @ 2000-08-04  8:03 UTC (permalink / raw)
  To: Peter Schwing; +Cc: crossgcc

Peter Schwing wrote:
> 
> Is it possible to generate a cross compiler with a powerpc-coff target.
> It will be used for an embedded system which can load COFF files using
> AIX conventions at runtime. gcc (2.95.2) and ld (binutils 2.10) refuse
> to build for such a target. Is there a special target I should select?
> Are there any other ideas?

What about build for ELF and use objcopy to convert the linked
executable to the COFF format required by the loader.

This is what RTEMS targets do for various combinations.  
 
> Peter Schwing
> schwing(at)rbg.informatik.tu-darmstadt.de
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: powerpc-coff target
  2000-06-06 13:10 Nicholas_Karagas
@ 2000-06-06 13:20 ` Scott Howard
  0 siblings, 0 replies; 4+ messages in thread
From: Scott Howard @ 2000-06-06 13:20 UTC (permalink / raw)
  To: crossgcc

Why do you want to build a COFF toolchain for PowerPC? ELF is very well
supported in the Gnu tools, and it's the standard for embedded PowerPC.

The target name for this configuration is 'powerpc-eabi'.

Scott

-----Original Message-----
From: crossgcc-owner@sourceware.cygnus.com
[ mailto:crossgcc-owner@sourceware.cygnus.com]On Behalf Of
Nicholas_Karagas@cirilium.com
Sent: Tuesday, June 06, 2000 1:10 PM
To: crossgcc@sourceware.cygnus.com
Subject: powerpc-coff target


I am attempting to build a cross environment from Cygwin/NT4.0 to a remote
PowerPC embedded target, using coff (powerpc-unknown-coff).  This is not
automatically supported with the GNU tools, and all my efforts to build gcc
for this environment have been in vain.  I believe that I correctly built
binutils, but I get the following result when making libgcc2 in gcc-2.95.2:

for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi
_fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab
_clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  /gcc-2.95.2/gcc/xgcc -B/gcc-2.95.2/gcc/
-B/usr/local/ppc-coff/ppc-coff/bin/ -I/usr/local/ppc-coff/ppc-coff/include
-O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2 -I./include  -mcpu=powerpc
-g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -I. -I. -I./config
-I./../include -c -DL${name} \
       ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ppc-coff-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
C:\TEMP/ccdvTd5T.s: Assembler messages:
C:\TEMP/ccdvTd5T.s:283: Warning: `.bf' symbol without preceding function
C:\TEMP/ccdvTd5T.s:341: Fatal error: C_EFCN symbol out of scope
make[3]: *** [libgcc2.a] Error 1
make[2]: *** [stmp-multilib-sub] Error 2
make[1]: *** [stmp-multilib] Error 1
make: *** [all-gcc] Error 2

Any help with this would be greatly appreciated.

Nicholas Karagas
Associate Software Engineer
Cirilium Corporation
Tempe, AZ
(480) 317-1144


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sourceware.cygnus.com



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* powerpc-coff target
@ 2000-06-06 13:10 Nicholas_Karagas
  2000-06-06 13:20 ` Scott Howard
  0 siblings, 1 reply; 4+ messages in thread
From: Nicholas_Karagas @ 2000-06-06 13:10 UTC (permalink / raw)
  To: crossgcc

I am attempting to build a cross environment from Cygwin/NT4.0 to a remote
PowerPC embedded target, using coff (powerpc-unknown-coff).  This is not
automatically supported with the GNU tools, and all my efforts to build gcc
for this environment have been in vain.  I believe that I correctly built
binutils, but I get the following result when making libgcc2 in gcc-2.95.2:

for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi
_fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab
_clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  /gcc-2.95.2/gcc/xgcc -B/gcc-2.95.2/gcc/
-B/usr/local/ppc-coff/ppc-coff/bin/ -I/usr/local/ppc-coff/ppc-coff/include
-O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2 -I./include  -mcpu=powerpc
-g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -I. -I. -I./config
-I./../include -c -DL${name} \
       ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ppc-coff-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
C:\TEMP/ccdvTd5T.s: Assembler messages:
C:\TEMP/ccdvTd5T.s:283: Warning: `.bf' symbol without preceding function
C:\TEMP/ccdvTd5T.s:341: Fatal error: C_EFCN symbol out of scope
make[3]: *** [libgcc2.a] Error 1
make[2]: *** [stmp-multilib-sub] Error 2
make[1]: *** [stmp-multilib] Error 1
make: *** [all-gcc] Error 2

Any help with this would be greatly appreciated.

Nicholas Karagas
Associate Software Engineer
Cirilium Corporation
Tempe, AZ
(480) 317-1144


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-08-04  8:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-04  5:24 powerpc-coff target Peter Schwing
2000-08-04  8:03 ` Joel Sherrill
  -- strict thread matches above, loose matches on Subject: below --
2000-06-06 13:10 Nicholas_Karagas
2000-06-06 13:20 ` Scott Howard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).