Hi,
I am facing "relocation truncated to fit: R_68K_GOT16O" problem when the code is getting linked.am using Code Warrior IDE 5.1.can you suggest me how to solve this problem.
Hello
- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.
CrasyCat
HI CrasyCat,
Processor :- MCF5270
uCLinux:- 2.4
Flash:- 8MB
SDRAM:-16MB
IDE: Codewarrior PCS 3.01
We have been working with Codewarrior PCS for the past 4 years.We are facing a problem while building the project now.We have added some code into the project which results overall code and data size of the project which showed in the IDE as 1.97M and 1.96M respectively.It gives linker error as "relocation truncated to fit : R_68K_GOT160 ".
We are having following queries:-
1. Is there any constraint the code and data memory configured in the IDE. We could not find any configurations in the build setting menu.
2. Is there any setting in the IDE, wherein we can change the code and data segment for the image we build?
Please help us in resolving this issue.
Regards,
Girish
Hello
Correct me if I am wrong, but according to my understanding you are trying to build a Linux kernel or a Linux application with CodeWarrior embedded Linux.
Am I right?
If this is the case you are in the wrong forum. The compiler used to build Linux applications or Linux kernel is the GNU compiler, not the CodeWarrior compiler.
Here I would suggest you to get assistance from a GNU compiler forums.
CrasyCat