Coldfire uC5282 Question
Chris Johns
chrisj at rtems.org
Tue Mar 30 23:01:43 UTC 2010
On 3/31/2010 9:26 AM, Joel Sherrill wrote:
>
> Thanks for all the help. I have tracked it down to memset()
> which is definitely in assembly in newlib 1.18.0. Hmmm...
> This output from the -v on the link doesn't look like it used
> the right multilib:
>
> /users/joel/test-gcc/b-gcc1-m68k/gcc/testsuite/gcc/' '-v'
> /users/joel/test-gcc/b-gcc1-m68k/gcc/collect-ld -dc -dp -N -o
> /users/joel/test-gcc/b-gcc1-m68k/gcc/testsuite/gcc/zero-struct-2.x7
> /users/joel/test-gcc/install-svn/m68k-rtems4.10/uC5282/lib/start.o
> /users/joel/test-gcc/b-gcc1-m68k/gcc/m5208/crti.o
> /users/joel/test-gcc/b-gcc1-m68k/gcc/m5208/crtbegin.o -e start
> -L/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib
This path looks wrong. The directory above this path is:
$ ls
libgcc libssp libstdc++-v3 m5206 m5208 m5307 m5329 m5407 m5475
m68000 m68040 m68060 mcpu32 newlib softfp
and:
$ ls m5208
libgcc libssp libstdc++-v3 newlib
I have never seen a newlib directory before. Has an extra newlib been
added to the path in 4.5 ?
If the extra path has been added, then:
/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib
is the default path with no -mcpu= on the command line, ie 68020 code,
so the linker command line is wrong, or the changed path is wrong or
effects the library selection.
> -L/users/joel/test-gcc/b-gcc1-m68k/gcc/m5208
> -L/users/joel/test-gcc/b-gcc1-m68k/gcc
> -L/users/joel/test-gcc/install-svn/m68k-rtems4.10/uC5282/lib
> -L/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib
> /tmp/ccBTk1gL.wpa.ltrans.o gcc_tg.o
> /users/joel/test-gcc/b-gcc1-m68k/rtems_gcc_main.o -wrap exit -wrap _exit
> -wrap main -wrap abort -lm -lgcc --start-group -lrtemsbsp -lrtemscpu -lc
> -lgcc --end-group -T
> /users/joel/test-gcc/install-svn/m68k-rtems4.10/uC5282/lib/linkcmds
> -lgcc /users/joel/test-gcc/b-gcc1-m68k/gcc/m5208/crtend.o
> /users/joel/test-gcc/b-gcc1-m68k/gcc/m5208/crtn.o
>
> -mcpu=5282
>
Is this -mcpu option on the linker command line or has it been added to
the command line ?
Chris
More information about the users
mailing list