Re: [cc65] link in own crt0.s

From: Ullrich von Bassewitz <>
Date: 2009-11-13 14:18:59
On Thu, Nov 12, 2009 at 08:45:43PM -0800, Shawn Jefferson wrote:
> How do you link in your own crt0.s with 2.13 now?  I was doing this with
> 2.12:

Use this line in your crt0.s:

        .export         __STARTUP__ : absolute = 1      ; Mark as startup

The compiler forces an import of this symbol when it encounters main(). This
makes it possible to place the startup code in the library and have it pulled
in automagically when needed.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Nov 13 14:19:37 2009

This archive was generated by hypermail 2.1.8 : 2009-11-13 14:19:41 CET