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

From: Oliver Schmidt <ol.sc1web.de>
Date: 2009-08-01 12:09:37
Hi,

>>Since the startup module is no
>>longer the first module on the linker command line, startup code placement has
>>to be done in the linker config using segments.

> 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)?

Hm, until now I thought that placing the startup object file on the
linker command line was solely necessary to make sure it get's linked
- acting like an anchor that pulls in everything else necessary.

But regarding the placement of the startup code at the beginning of
the binary I thought this was all the recent years managed in the
linker config by declaring the STARTUP segment as the first one going
into the RAM memory area.

If these assumptions should be wrong - as Uz' statement above
indicates -  then your question is indeed an interesting one...

Slightly puzzled, Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Aug 1 12:09:43 2009

This archive was generated by hypermail 2.1.8 : 2009-08-01 12:09:46 CEST