Hi Chris,
>...snip
The code is in gcc/config/msp430/libgcc.S
I was thinking, alternatively, that perhaps if I write a function and
force the linker to place it at .init1 that might give me a convenient
way to still use the default startup code, but link in my own hardware
initialization. Is this possible?
This only works in gcc-3.3 and above, I would not trust gcc-3.3. The
changes for this could be back ported to gcc-3.2.3 and re-compiled.
You can do this with the function attribute "section" in your C code, eg
__attribute__((section(".init1"))) void init1(void)
you might also want
__attribute__ ((naked))
Regards,
--
Peter Jansen
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not
the
intended recipient, you are notified that use or dissemination of this
communication is
strictly prohibited by Commonwealth law. If you have received this transmission
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232
3209 and
DELETE the message.
Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________