From vxwexplo-errs@csg.lbl.gov Tue Oct 1 09:25:32 2002
From: Bruce Wilson When we try to *build* our application (text segment size is abt 2MB) in vxworks5.4( Since we use ARM processor and COFF file format, used a linker option "-split-by-reloc 65535" (or 65000). also tried with "-traditional-format" linker option but the problem remains same. when i searched through the vxworks archieve(FAQ) found a compiler option for powerPC such as -mlongcall (or -mlong-call) but i doubt any such option is available for ARMcompilers (ccarm) ? when excluded few modules from my application then the build succeeds and vxWorks image is created. But it is been very difficult(merely not possible) for me to exclude any of the modules from our application. also come across a suggestion of upgrading to Tornado2.2 which uses Elf ARM toolchain which i guess is a complete rework to be done! my questions are: 1) Is this problem solvable in Tornado2.0 ? how ? 2) Is there anyother solution ? 3) how to change the file format (COFF to ELF etc) i understand this could be a common problem posted many times into this list but any help in this regard is highly appreciated. Thanks in advance , lakshminarayanan r -------------------------------------------build capture start----------------------------------------------------- ccarm -g -mcpu=arm7tdmi -mapcs-32 -mno-thumb-interwork -ansi -nostdinc -DRW_MULTI_THREAD - D_REENTRANT -mno-sched-prolog -fno-builtin -fvolatile -IC:\Tornado\target\proj\Project1 -I C:\Tornado\target\config\sbcARM7 -IC:\Tornado\target\h -IC:\Tornado\target\config\comps\sr c -IC:\Tornado\target\src\drv -DCPU=ARM7TDMI -DPRJ_BUILD -Wcomment -g -c C:\Tornado\target \config\comps\src\version.c ccarm -nostdlib -r -Wl,-X \ -Wl,@C:\Tornado\target\proj\Project1\prjObjs.lst C:\Tornado\target\config\sbcARM7\sngk s32cEnd.obj C:\Tornado\target\proj\future\LR\FutureDSL.o version.o C:\Tornado\target\lib\ libARM7TDMIgnuvx.a C:\Tornado\host\x86-win32\lib\gcc-lib\arm-wrs-vxworks\2.7.9-970819\libg cc.a -o partialImage.o C:\Tornado\host\x86-win32\lib\gcc-lib\arm-wrs-vxworks\2.7.9-970819\..\..\..\..\arm-wrs-vxw orks\bin\\ld.exe: partialImage.o: .text: reloc overflow: 0x1012e > 0xffff partialImage.o: final close failed: File truncated collect2: ld returned 1 exit status ccarm: Internal compiler error: program ld got fatal signal 1 make: *** [partialImage.o] Error 0x1 Done. -------------------------------------------build capture end-----------------------------------------------------
Tornado2.0) we face ".text relocation overflow" problem during the partialImage.o linking.