From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Sherrill To: Ian Lance Taylor Cc: gas2@cygnus.com Subject: Re: binutils 2.9 powerpc-rtems breakage Date: Tue, 14 Apr 1998 11:21:00 -0000 Message-id: References: <199804132223.SAA11602@subrogation.cygnus.com> X-SW-Source: 1998/msg00116.html On Mon, 13 Apr 1998, Ian Lance Taylor wrote: > Date: Mon, 13 Apr 1998 16:21:53 -0500 (CDT) > From: Joel Sherrill > > I can produce a .s file using -s and then assemble that file with: > > ./as -mppc -V -Qy -mrelocatable-lib libgcc2.s > > which indicates to me that somehow the rtems configuration lost support > for the -mlittle option. powerpc-rtems should be identical to > powerpc-eabi if that trips anyone's memory. > > What happens if invoke as directly with -mlittle? > > -mlittle still seems to work for me for the powerpc-eabi target. I > don't know what's happening with your build. I have not attempted to build powerpc-eabi but I may need to do that. Something is also failing with mips64orion-rtems that I need to look into. Anyway, I put the gcc command line in a script and then monkeyed with the arguments. It looks like -mlittle is enough by itself to break it. It breaks with all the arguments, just -mlittle, but works will the args minus -mlittle. See this output from my test script: + /usr1/rtems/work/tools/build-powerpc-tools/gcc/xgcc -B/usr1/rtems/work/tools/build-powerpc-tools/gcc/ -O2 -DCROSS_COMPILE -DIN_GCC -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions -Dinhibit_libc -mlittle -mrelocatable-lib -mno-eabi -mstrict-align -I. -I../../src/gcc -I../../src/gcc/config -DL_muldi3 ../../src/gcc/libgcc2.c -c Assembler messages: FATAL: Can't create libgcc2.o: Invalid bfd target + /usr1/rtems/work/tools/build-powerpc-tools/gcc/xgcc -B/usr1/rtems/work/tools/build-powerpc-tools/gcc/ -O2 -DCROSS_COMPILE -DIN_GCC -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions -Dinhibit_libc -mlittle -mstrict-align -I. -I../../src/gcc -I../../src/gcc/config -DL_muldi3 ../../src/gcc/libgcc2.c -c Assembler messages: FATAL: Can't create libgcc2.o: Invalid bfd target + /usr1/rtems/work/tools/build-powerpc-tools/gcc/xgcc -B/usr1/rtems/work/tools/build-powerpc-tools/gcc/ -O2 -DCROSS_COMPILE -DIN_GCC -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions -Dinhibit_libc -mrelocatable-lib -mno-eabi -mstrict-align -I. -I../../src/gcc -I../../src/gcc/config -DL_muldi3 ../../src/gcc/libgcc2.c -c The only things which vary are the arguments: In (1), -mlittle -mrelocatable-lib -mno-eabi In (2), -mlittle In (3), -mrelocatable-lib -mno-eabi (1) and (2) report the error. Any ideas on what to look at? --joel