This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


   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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]