[coldfire-gnu-discuss] undefined reference to `__region_array' error

Carlos O'Donell carlos at codesourcery.com
Thu Jul 5 16:35:30 UTC 2007


On Wed, Jul 04, 2007 at 02:20:46AM -0500, Ha Luong wrote:
>    Dear all,
>    I used sourcery 4.2-8 to compile my source and I has the error :
>    m68k-elf-gcc -u main -u __region_array 
>    -TD:/cvs_test/mw_test/Cross_Products/Com
>    piler/mw_test_harness/product_utils/gcc_cf/m5282evb- ram-hosted.ld -o
>    gcc_cf/bin/
>    ttsprk01.elf gcc_cf/obj/ttsprk01/algotst.o gcc_cf/obj/ttsprk01/bmark.o 
>    gcc_cf/o
>    bj/thobjs.a D:\CodeSourcery\SourceryGppLite/m68k-elf/lib/libm.a
>    d:/codesourcery/sourcerygpplite/bin/../lib/gcc/m68k-elf/4.2.0/../../../../m68k-e
>    lf/bin/ld.exe: warning: cannot find entry symbol __start; defaulting to
>    00000000
> 
>    d:/codesourcery/sourcerygpplite/bin/../lib/gcc/m68k-elf/4.2.0/../../../../m68k-e
>    lf/lib\libcf.a(cf-crt1.o): In function `__start1':
>    cf-crt1.c:(.text+0x32): undefined reference to `__region_array'
>    cf-crt1.c:(.text+0x3a): undefined reference to `__region_array'
>    collect2: ld returned 1 exit status
>    make: *** [gcc_cf/bin/ttsprk01.elf] Error 1
> 
>    I compiled the same source with sourcery 4.1-32 before , and it has no
>    error . Could you please help me ?

You have forced __region_array to be undefined with "-u __region_array" 
and you have not provided an archive which defines __region_array?

Which archive defines __region_array?

It appears that __start is also not defined?

Cheers,
Carlos.
-- 
Carlos O'Donell
CodeSourcery
carlos at codesourcery.com
(650) 331-3385 x716



More information about the coldfire-gnu-discuss mailing list