Command Line toolset: Link time error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Command Line toolset: Link time error

1,627 次查看
syakovlev
Contributor I
Command line tools from CodeWarrior 6.3 are used in sequence:
1. mwccmcf
2. mwasmmcf
3. mwldmcf
to build a project.
Here is one of many (>100) identical errors reported by linker:
#   Check linker command file to make sure symbol is located
#   between 0x00000000-0x00007FFF or 0xFFFF8000-0xFFFFFFFF in memory.
### CodeWarrior6.3/E68K_Tools/Command_Line_Tools/mwldmcf Linker Error:
#   Illegal 16-bit absolute address reference to symbol '_LengthInProgress'
#   from address 0x0000ED0C in section '.text' of file 'file.o '.
 
What might be the reason?
Thanks.
Sergei.
 
 
标签 (1)
0 项奖励
回复
1 回复

893 次查看
syakovlev
Contributor I
I got it.
 
-model option was missing in CFLAGS (makefile), therefore default model was
nearCode and nearData.
Problem gone after switch "-model far" has been added to CFLAGS.
I didn't expect near to be default for 32-bit MCU.
0 项奖励
回复