Coldfire uC5282 Question
Chris Johns
chrisj at rtems.org
Tue Mar 30 23:09:55 UTC 2010
On 3/31/2010 10:01 AM, Chris Johns wrote:
> 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.
>
or the command line to the linker is wrong. Here it is:
/users/joel/test-gcc/b-gcc1-m68k/gcc/xgcc
-B/users/joel/test-gcc/b-gcc1-m68k/gcc/
/users/joel/test-gcc/gcc-svn/gcc/testsuite/gcc.c-torture/execute/zero-struct-2.c
gcc_tg.o -w -O2 -fwhopr -DSTACK_SIZE=2048 -isystem
/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib/targ-include
-isystem /users/joel/test-gcc/gcc-svn/newlib/libc/include
-B/users/joel/test-gcc/install-svn/m68k-rtems4.10/uC5282/lib/ -specs
bsp_specs -qrtems -mcpu=5282
-B/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib/
-L/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib
/users/joel/test-gcc/b-gcc1-m68k/rtems_gcc_main.o -Wl,-wrap,exit
-Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -lm -o
/users/joel/test-gcc/b-gcc1-m68k/gcc/testsuite/gcc/zero-struct-2.x7
Notice the "-L/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib"
path. I think this may be the source of the problem.
Chris
More information about the users
mailing list