AnsweredAssumed Answered

Link Error L1907 - How to fix it?

Question asked by sebasira on Jan 5, 2011
Latest reply on Jan 6, 2011 by CompilerGuru

Hi all! I've got a problem here.. I already search in CodeWarrior Help, and I guess the problem is due to zero paged variables allocated out of the zero page.

 

This is the error I get:

 

Link Error: L1907: Fixup overflow in _LDIVS, to _NEG_P type 3, at offset 0xB

Link Error: L1907: Fixup overflow in _LDIVS, to _NEG_P type 3, at offset 0x13

Link Error: L1907: Fixup overflow in _LDIVS, to _NEG_P type 3, at offset 0x19

Link Error: L1907: Fixup overflow in _LDIVS, to _NEG_P type 3, at offset 0x20

 

Then looking at the map file I see this:

_NEG_P                                    FEE2       F        15       0   NON_BANKED  
_LDIVS                                       75C7      35      53       0   FLASH_PAGE7000_304

 

I have several targets in my project, some of them don throw this error and both _NEG_P and _LDIVS are allocated in the same page.

 

Also, my pages are called:

FLASH_PAGEC000

FLASH_PAGE7000

PAGE_31 ..... to ..... PAGE_3D

 

And don't know why, the compiler "creates" FLASH_PAGE7000_304. What am I forgetting or doing wrong? (also sometimes creates PAGE_3D_### and other pages too)

 

Well, I hope you guys can help me here. I don't know how to allocate those objects since they are part of ansibi.lib.

 

Just if you need it, here's part of my .prm file:

 

PLACEMENT

    PAGE_7000              INTO  FLASH_PAGE7000;    

    _PRESTART,                   /* Used in HIWARE format: jump to _Startup at the code start */
    STARTUP,                     /* startup data structures */
    ROM_VAR,                     /* constant variables */
    STRINGS,                     /* string literals */
    VIRTUAL_TABLE_SEGMENT,       /* C++ virtual table segment */
    NON_BANKED,                  /* runtime routines which must not be banked */
    PAGE_C000,
    PAGE_IRQ,
    COPY                                     INTO  FLASH_PAGEC000,FLASH_PAGE7000;

 

Thanks in advance!

Outcomes