Re: [cc65] Startup magic (was: Segment EXEHDR does not exist - while using ld65 directly)

From: Christian Groessler <chris1groessler.org>
Date: 2009-07-31 23:55:16
Hi,

On Fri, 31 Jul 2009, Ullrich von Bassewitz wrote:

> I've checked all platforms and
> the only one that I think may have problems is the Atari startup. Christian,
> can you please check that? There's an executable header with an address that
> points to the start of the LOWCODE segment. If this address is the start
> address, it will have to be fixed, since with more than one module defining
> code in LOWCODE, the startup code may not be at the beginning of LOWCODE. I
> would suggest to implement a STARTUP segment as already done for most other
> platforms.

Hmm, although I'm monitoring this ml, I've somehow missed the 
introduction of the STARTUP segment. Looking at svn history it seems the 
STARTUP segment was already introduced in 2002 (together with the LOWCODE
segment). Boah! Time flies.

Looking at Atari's crt0.s I think the code which is currently in the
LOWCODE segment could simply be put into the STARTUP segment. I'll do the
change within the next days.

Could somebody in the meanwhile refresh my memory and explain the purpose
of the STARTUP segment (not the new one introduced with the recent changes
to slurp in the startup code at the very beginning of the exe file)?

regards,
chris
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jul 31 23:50:20 2009

This archive was generated by hypermail 2.1.8 : 2009-07-31 23:50:22 CEST