Yuri Petriaev

referensing global labels fails

Discussion created by Yuri Petriaev on Mar 22, 2007
Latest reply on Mar 26, 2007 by Yuri Petriaev
I am trying to reference global label located in the startup.s source from *.cpp file.
The error message states that label is "Undefined".
Assembly code:
.section .init$00,2,C
.global ___init
; Linker places .init sections from other modules, containing
; calls to initialize global objects, here.
.section .init$99,2,C
rts   ; Return from ___init.
C++ code:
extern void ___init(void);
static int init_main_guts(void)
 /* initialize constructors    */
What am I doing wrong?
I am using CodeWarrior Development Studio for ColdFire Architectures Version 6.3, Build 14.
My target is MCF5307.
Thank you!