Cross compiler x86->ARM (no stdio.h)

Ian Lance Taylor ian@cygnus.com
Wed Apr 15 11:02:00 GMT 1998


   Date: Wed, 15 Apr 1998 11:49:49 -0600
   From: Jeffrey A Law <law@cygnus.com>

     In message < 199804151747.NAA19619@subrogation.cygnus.com >you write:
     >    Date: Wed, 15 Apr 1998 09:59:15 -0600
     >    From: Jeffrey A Law <law@cygnus.com>
     > 
     >      > trap.S: Assembler messages:
     >      > trap.S:3: Error: Unknown pseudo-op:  `.section'
     >      > make[5]: *** [trap.o] Error 1
     >      > make[5]: Leaving directory `/home/tele/etokna/egcs-1.0.2/arm-semi-ao
     > ut/newl
     >      > ib/libc/sys/arm'
     >      > make[4]: *** [subs] Error 2
     >    This belongs on the gas/binutils or newlib mailing lists.
     > 
     > Well, if arm-aout-gcc is generating a .section pseudo-op, then I think
     > it's an egcs bug.
     > 
     > Ian, passing the buck back
   This is from "trap.S", -- assembler code which happens to use
   .section.  This is not a compiler issue.

Whoops, sorry.

You're right, it looks like an assembler related problem, and Jeff's
earlier answer was quite correct: the a.out assembler does not support
the .section pseudo-op.

Since it looks like you're compiling a file from newlib, I'd say that
newlib hasn't been ported to arm-aout.  Since the line in question is
just
    .section .text
you can replace it with just
    .text
which should work for any target.

There may of course be other problems.

Ian



More information about the Gcc-bugs mailing list