Cross compiler x86->ARM (no stdio.h)
Jeffrey A Law
Wed Apr 15 08:59:00 GMT 1998
In message < 9804151255.AA25169@grolsch >you write:
> Jeffrey A Law writes:
> > In message < 9804140140.AA28885@axp745.gsfc.nasa.gov >you write:
> > > Well, yes. That web site I listed has a very very tiny c-lib that
> > > just enough to get an embedded program working. But, it doesn't
> > > have any stdio stuff. Also, I know there are other people out
> > > there using gcc for embedded ARM development. What are they
> > > using? I'd love to just use glibc. How do I do that? That
> > > web site supposely had everything you need for an embedded ARM
> > > development. I'd just like to upgrade it from 2.5.8 to ecgs-1.0.2.
> > Many use newlib for embedded work. glibc's license is a problem
> > for some embedded folks (do you really want the source code to your
> > toaster :-)
> > You might be able to work around the need for stdio.h in libgcc
> > by specifying --with-newlib (even if you don't have use newlib,
> > this disables certain functions in libgcc.a).
> > jeff
> gas from binutils-2.9 fails in this way during compilation of newlib-1.8.0:
> make: Entering directory `/home/tele/etokna/egcs-1.0.2/arm-semi-aout/new
> /home/tele/etokna/egcs-1.0.2/gcc/xgcc -B/home/tele/etokna/egcs-1.0.2/gcc/ -
> idirafter /home/tele/etokna/egcs-1.0.2/arm-semi-aout/newlib/targ-include -i
> dirafter /home/tele/etokna/egcs-1.0.2/newlib/libc/include -nostdinc -g -O2
> -O2 -DABORT_PROVIDED -fno-builtin -I/home/tele/etokna/egcs-1.0.2/arm-semi-
> aout/newlib/./targ-include -I/home/tele/etokna/egcs-1.0.2/arm-semi-aout/new
> lib/./libc/include -c trap.S
> trap.S: Assembler messages:
> trap.S:3: Error: Unknown pseudo-op: `.section'
> make: *** [trap.o] Error 1
> make: Leaving directory `/home/tele/etokna/egcs-1.0.2/arm-semi-aout/newl
> make: *** [subs] Error 2
This belongs on the gas/binutils or newlib mailing lists.
Though I see references to "arm-aout" which probably doesn't support
.section pseudo-ops since aout in general can't support anything
except the old 3-section model.
arm-coff might be a better target.
More information about the Gcc-bugs