This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: building arm-elf with newlib


Hello 


On Mon, 28 Jun 2004 15:40:56 -0700  Daniel Kegel <dank@kegel.com> wrote:


> make[2]: Entering directory
> `/home/akubbat/Projects/TOOLS/build-gcc/gcc'
> /home/akubbat/Projects/TOOLS/build-gcc/gcc/xgcc
> -B/home/akubbat/Projects/TOOLS/build-gcc/gcc/
> -B/home/akubbat/Projects/TOOLS/ARM-gcc-2.95.3/arm-elf/arm-elf/bin/
> -I/home/akubbat/Projects/TOOLS/ARM-gcc-2.95.3/arm-elf/arm-elf/include
> -O2  -DCROSS_COMPILE -DIN_GCC
>    -O2 -I./include  -Dinhibit_libc -g1  -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED   -g -O2 -I. -I../../gcc-2.95.3/gcc
> -I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include \
>   -c ../../gcc-2.95.3/gcc/cp/tinfo.cc
> >>>/tmp/ccEugNg3.s: Assembler messages:
> >>>/tmp/ccEugNg3.s:889: Error: junk at end of line, first unrecognized
> >>>character is `,'

The assembly code generated there is like this :
@ Generated by gcc 2.95.3 20010315 (release) for ARM/elf
(...)
	.word	dcast__C16__user_type_infoRC9type_infoiPvPC9type_infoT3
	.space	8
	.weak	_vt.10bad_typeid
	.section .gnu.linkonce.d._vt.10bad_typeid,"aw"
(...)
	.align	2
.LC58:
	.ascii	"17__class_type_info\000"
	.section .gnu.linkonce.t.__tf9type_info,"ax",@progbits
	

The last line is line 889 that causes the trouble
Apparently arm-elf-as doesn't like the   ",@progbits" at the end.
Other .sections  without that are accepted.
And "grep -n @progbits tinfo.s" give a perfect match with the line
numbers causing the problem. 

After removing this offending sequence, the assembler accepts the input.
But I'm not familiar with the details of the ARM Assambler and the side-
effects of my modification.

Has anyone encountered this issue before ?



Andreas


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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