This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

No linker-warning when there is an overlapping of code

Hello,

I use the RENAMECLASS-command to define a BOOT_CODE-class.

When I create the following classes:

ICODE (0xC00200-0xC002ff), BOOT_CODE (0xC00300-0xC017FF)..

..and I force the linker to set the startup-code to:

SECTIONS (?C_STARTUP_CODE%ICODE (0xC0200))

.. I have the following result:

0C0200H   0C0359H   00015AH   CODE  REL   WORD   ---  ---  PRIV  ICODE   ?C_STARTUP_CODE
..
C00300H   C005B9H   0002BAH   CODE  REL   WORD   ---    1  PUBL  BOOT_C  ?PR?OSYS
                                                                -ODE

The means the code in startup is overlapping with the code of BOOT_CODE-class.

I am confused, because I do not get any linker warning..

Thanks for the help!
Best regards,
Josef

0