This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

newbie linker question


Two years ago my company did a project using a MPC555 processor, the Nucleus RTOS, and gcc as our cross
compiler.  We were using 2.95.3 and ATI (makers of Nucleus) provided the board support package with a linker
script.

Now we are switching to a newer MPC563 processor and a newer version of gcc.  I successfully built 3.3.1 using
all the help online and all the code compiles fine right up to the linker invocation.

Apparently something has changed with the newer compilers.  I have looked at the linker script provided by ATI
and I understand enough to place the sections in RAM or FLASH as needed, but I have no idea what the different
sections are for or how to tell whether they are read only or writable.

Below are the errors generated by ld using the existing linker script.  How do I figure out which sections go
in FLASH and which ones need to go in RAM?

thanks,
marc


make[2]: Entering directory `/cygdrive/c/mschafer/aClipperDepot/sbir/sins/src/flight/obj/mpc555'
powerpc-eabi-gcc -o ../../sins   exec.o gps.o imu.o kalman.o main.o matrices.o matrix3.o rotation.o vec.o vg.o
checksum.o sbirMessages.o sbirSwap.o          -T
../../../../../tools/ram.ld -Wl,-Map,app.map -Wl,--defsym,__cxa_pure_virtual=0 -Lc:/avidyne/lib/mpc555  -lmpc5
55 -lnppBase -lnucleus -lm -lc -lgcc -lnosys
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.rodata.str1.4'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.rodata.cst8'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.rodata.cst4'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.data.rel.local'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.data.rel.ro.local'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.data.rel'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: section .rodata.str1.4
[00000000 -> 0000024e] overlaps section .nu_vectors [00000000 -> 00001f33]
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: section .rodata.cst8
[00000250 -> 000005bf] overlaps section .nu_vectors [00000000 -> 00001f33]
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: section .rodata.cst4
[000005c0 -> 0000067f] overlaps section .nu_vectors [00000000 -> 00001f33]
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.rodata.str1.4'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.rodata.cst8'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.rodata.cst4'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.data.rel.local'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.data.rel.ro.local'
/usr/local/tools/lib/gcc-lib/powerpc-eabi/3.3.1/../../../../powerpc-eabi/bin/ld: warning: no memory region
specified for section `.data.rel'
collect2: ld returned 1 exit status
make[2]: *** [../../sins] Error 1
make[2]: Leaving directory `/cygdrive/c/mschafer/aClipperDepot/sbir/sins/src/flight/obj/mpc555'
make[1]: *** [buildapp] Error 2
make[1]: Leaving directory `/cygdrive/c/mschafer/aClipperDepot/sbir/sins/src/flight'
make: *** [default] Error 2


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]