undefined reference to `__region_array' error

Ha Luong haluongvn at gmail.com
Wed Jul 4 07:20:46 UTC 2007


Dear all,
I used sourcery 4.2-8 to compile my source and I has the error :

m68k-elf-gcc -c  -mcpu=5282  -O3    -DMCF5282_BOARD -D NW_DGM_ALIGN=4
-DEE_BIG_E
NDIAN -msoft-float -DNDEBUG -DAUTOGO=TRUE   -I. -I../th/gcc_cf/al
-I../th/src
-Ittsprk01 -DITERATIONS=DEFAULT  -I. -I../th/gcc_cf/al -I../th/src -o
gcc_cf/obj
/ttsprk01/algotst.o ttsprk01/algotst.c
m68k-elf-gcc -c  -mcpu=5282  -O3    -DMCF5282_BOARD -D NW_DGM_ALIGN=4
-DEE_BIG_E
NDIAN -msoft-float -DNDEBUG -DAUTOGO=TRUE   -I. -I../th/gcc_cf/al
-I../th/src
-Ittsprk01 -DITERATIONS=DEFAULT  -I. -I../th/gcc_cf/al -I../th/src -o
gcc_cf/obj
/ttsprk01/bmark.o ttsprk01/bmark.c
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 ?

Thanks,
Ha Luong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20070704/a57cd0fe/attachment.html>


More information about the coldfire-gnu-discuss mailing list