Yuri Petriaev

MCF5307- CW8.4 - Section does not appear in the memory map file

Discussion created by Yuri Petriaev on Jun 11, 2007
Latest reply on Jun 13, 2007 by CrasyCat

I use CodeWarrior for ColdFire version 6.4.

My target is MCF5307.

I have following section declaration in the startup.s file:

.section .init
.global ___init
 ___init:   ; ___init_main called above.

 ; Linker supposed to place .init sections from other modules, containing
 ; calls to initialize global objects, here.

 rts   ; Return from ___init.

This section does not appear in the map file and other modules' init sections are not palced under it.

Any idea why it does not work or what I'm I missing?

Thank you!

Message Edited by Veter on 2007-06-11 09:51 PM
Alban Edit: please ALWAYS mention target and CW version in subject line.

Message Edited by Alban on 2007-06-11 09:53 PM