Command Line toolset: Link time error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Command Line toolset: Link time error

1,135 Views
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.
 
 
Labels (1)
0 Kudos
1 Reply

401 Views
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 Kudos