djgcpp cross assembler for PPC
Michel_Pinton@swhouse.com
Michel_Pinton@swhouse.com
Wed Dec 16 06:11:00 GMT 1998
Hi Tom,
Yes, what I have been trying to do is find some GNU-based cross compiler
for PPC (PPC821) running in an embedded system but with tools hosted on
Win95/98 or NT platform. The djgcpp cross compiler has almost filled that
need (I have verified it properly does everything Big Endian but not so
sure about Little Endian). But I cheated - the www.objsw.com site has
prebuilt binaries for PPC (and other processors) for Windoze systems.
I am still trying to get the Cygnus B20.1 tools to create a PPC cross
compiler but no luck so far, I keep bombing out in "configure"!! Maybe I
should just try the mingw32 side of things....
Michel
_______________________
Michel Pinton
Sr Principal S/W Engineer
Sensormatic ACD
tom.williams@diversifiedsoftware.com on 12/15/98 11:38:08 PM
To: Michel Pinton/Software House
cc:
Subject: Re: djgcpp cross assembler for PPC
Are you building the cross compiler for and embedded system? I'm curious
because I've been tryingto build a cross-compiler for a PPC based RS/6000
running AIX and I've been having no luck.
Peace....
Tom Williams
tom.williams@diversifiedsoftware.com
Michel_Pinton@swhouse.com on 12/15/98 08:07:05 AM
Please respond to Michel_Pinton@swhouse.com
To: crossgcc@cygnus.com
cc: (bcc: Tom Williams/HQ/dssi)
Subject: djgcpp cross assembler for PPC
Hi,
I am having problems with the cross assembler (djgcpp as downloaded from
the www.objsw.com/download site) for the PPC cross assembler and the
little-endian runtimes.
When compiling a small test program the assembler seems to be creating a
big-endian object file which then links to the little-endian libs and
fails.
Is it possible that the as built for this was built assuming big-endian?
Thanks for info,
Michel
---------------------------------------
Michel Pinton
Sr Principal S/W Engineer
Sensormatic ACD
Here's the command line and output.
My command line is ->
gcc -gstabs -v -mlittle-endian hello.c
the output (due to the -v option) is ->
Using builtin specs.
gcc version 2.8.1
d:/xgcc/ppc/2_8_1/cpp.exe -lang-c -v -iprefix d:/xgcc/dos/2_8_1/ -undef
-D__GNUC__=2 -D__GNUC_MIN
-gstabs -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__
-Asystem(unix) -Acpu(i386) -A
GNU CPP version egcs-2.90.29 980515 (egcs-1.0.3 release) (PowerPC Embedded)
#include "..." search starts here:
#include <...> search starts here:
d:/xgcc/ppc/2_8_1/include
End of search list.
d:/xgcc/ppc/2_8_1/cc1.exe C:\TEMP/ccaaaaaa.i -quiet -dumpbase hello.c
-mlittle-endian -gstabs -ve
GNU C version egcs-2.90.29 980515 (egcs-1.0.3 release) (ppc) compiled by
GNU C version 2.8.1.
hello.c: In function `main':
hello.c:32: warning: return type of `main' is not `int'
d:/xgcc/bin/as.exe -o C:\TEMP/ccaaaaaa1.o C:\TEMP/ccaaaaaa.s
d:/xgcc/bin/ld.exe d:/xgcc/ppc/2_8_1/le/crt0.o -Ld:/xgcc
-Ld:/xgcc/ppc/2_8_1/le C:\TEMP/ccaaaaaa1
d:/xgcc/bin/ld.exe: d:/xgcc/ppc/2_8_1/le/crt0.o: compiled for a little
endian system and target is
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/crt0.o
d:/xgcc/bin/ld.exe: eabi.o: compiled for a little endian system and target
is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libgcc.a(e
d:/xgcc/bin/ld.exe: eabi-ctors.o: compiled for a little endian system and
target is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libgcc.a(e
d:/xgcc/bin/ld.exe: atexit.o: compiled for a little endian system and
target is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libg.a(ate
d:/xgcc/bin/ld.exe: exit.o: compiled for a little endian system and target
is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libg.a(exi
d:/xgcc/bin/ld.exe: impure.o: compiled for a little endian system and
target is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libg.a(imp
d:/xgcc/bin/ld.exe: malloc.o: compiled for a little endian system and
target is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libg.a(mal
d:/xgcc/bin/ld.exe: mallocr.o: compiled for a little endian system and
target is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libg.a(mal
d:/xgcc/bin/ld.exe: memcpy.o: compiled for a little endian system and
target is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libg.a(mem
d:/xgcc/bin/ld.exe: sbrkr.o: compiled for a little endian system and target
is big endian
File in wrong format: failed to merge target specific data of file
d:/xgcc/ppc/2_8_1/le/libg.a(sbr
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x8): undefined reference to
`__SDATA_START__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0xc): undefined reference to
`__SBSS_END__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x14): undefined reference to
`__SDATA2_START__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x18): undefined reference to
`__SBSS2_END__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x1c): undefined reference to
`__GOT_START__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x28): undefined reference to
`__GOT_END__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x2c): undefined reference to
`__GOT2_START__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x30): undefined reference to
`__GOT2_END__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x34): undefined reference to
`__FIXUP_START__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x38): undefined reference to
`__FIXUP_END__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x4c): undefined reference to
`__EXCEPT_START__'
d:/xgcc/ppc/2_8_1/le/libgcc.a(eabi.o)(.got2+0x50): undefined reference to
`__EXCEPT_END__'
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list