Re: [cc65] ca65 for stand-alone asm projects

From: Daniel Serpell <daniel.serpell1gmail.com>
Date: 2010-11-06 23:10:26
Hi,

On Sat, Nov 6, 2010 at 6:14 PM, Oliver Schmidt <ol.sc@web.de> wrote:
> Hi Uz,
>
>>> Well, if the importing of symbols from the linker config were implemented,
>>> the simple header objects could be included in the standard library, so
>>> using the new linker config from "cl65" would work, as:
>>> [...]
>
>> I will try to find a solution for that, it is really useful.
>
> If I'm getting this right then we could import the symbol _main from
> the "usual" (aka non-standalone-asm-program) linker configs :-)

Currently, cc65 emits a ".forceimport __STARTUP__" directive in
its assembly output if there is a main function defined in the .c file,
to force the inclusion of the C startup at link time.

This could be replaced by an import of __STARTUP__ from the
linker config, and the special case for main removed from cc65.

As an example, currently the gnu binutils linker specifies in the
default Linux linker script "ENTRY(_start)", forcing the import
of the _start symbol as the program entry point.

    Daniel.
----------------------------------------------------------------------
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 Nov 6 23:10:33 2010

This archive was generated by hypermail 2.1.8 : 2010-11-06 23:10:36 CET