From eb10d4033298e82c04e9fdaa99b84dd10da8b60e Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Sat, 20 Aug 2005 14:25:20 +0000 Subject: [PATCH] - The startup code now references the linker symbol generated for the user-supplied main() function. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15018 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- library/changes | 3 +++ library/crt0.S | 3 ++- library/ncrt0.S | 3 ++- library/nrcrt0.S | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/library/changes b/library/changes index 79e708d..e5c65c6 100644 --- a/library/changes +++ b/library/changes @@ -13,6 +13,9 @@ - The wildcard escape character used in __wildcard_expand_init() was wrong. It should have been "'" but it was "`". Fixed. +- The startup code now references the linker symbol generated for + the user-supplied main() function. + c.lib 1.194 (15.7.2005) diff --git a/library/crt0.S b/library/crt0.S index d952d3e..560d8f9 100644 --- a/library/crt0.S +++ b/library/crt0.S @@ -1,11 +1,12 @@ // -// $Id: crt0.S,v 1.3 2005-06-26 12:02:56 tfrieden Exp $ +// $Id: crt0.S,v 1.4 2005-08-20 14:25:20 obarthel Exp $ // // :ts=4 // .text + .globl main .globl _main .globl _start diff --git a/library/ncrt0.S b/library/ncrt0.S index 5486870..a0af290 100644 --- a/library/ncrt0.S +++ b/library/ncrt0.S @@ -1,5 +1,5 @@ | -| $Id: ncrt0.S,v 1.2 2005-01-02 09:07:07 obarthel Exp $ +| $Id: ncrt0.S,v 1.3 2005-08-20 14:25:20 obarthel Exp $ | | :ts=4 | @@ -35,6 +35,7 @@ .text + .globl _main .globl __main |----------------------------------------------------------------------------- diff --git a/library/nrcrt0.S b/library/nrcrt0.S index ab8fc46..50517e9 100644 --- a/library/nrcrt0.S +++ b/library/nrcrt0.S @@ -1,5 +1,5 @@ | -| $Id: nrcrt0.S,v 1.2 2005-01-02 09:07:07 obarthel Exp $ +| $Id: nrcrt0.S,v 1.3 2005-08-20 14:25:20 obarthel Exp $ | | :ts=4 | @@ -56,6 +56,7 @@ MEMF_CLEAR = 65536 .text + .globl _main .globl __main .globl ___is_resident