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)


At 14:55 15/04/98 +0200, Knut-Håvard Aksnes wrote:
>gas from binutils-2.9 fails in this way during compilation of newlib-1.8.0:
>make[5]: Entering directory
`/home/tele/etokna/egcs-1.0.2/arm-semi-aout/newlib/libc/sys/arm'
>/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
-idirafter /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/newlib/./libc/include -c trap.S
>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-aout/newlib/libc/sys/arm'
>make[4]: *** [subs] Error 2

The fix is easy.  Simply replace the line which reads 
	.section text
with
	.text

.section is only valid for the coff build of the tools.  .text is valid for
both coff and a.out.

Richard.


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