2
# $Id: prt0.as,v 1.3 2000/11/07 14:07:19 marco Exp $
3
# This file is part of the Free Pascal run time library.
4
# Copyright (c) 1999-2000 by Marco van de Voort, Michael Van Canneyt
6
# members of the Free Pascal development team.
8
# See the file COPYING.FPC, included in this distribution,
9
# for details about the copyright.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY;without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
#**********************************************************************}
17
# FreeBSD standard (static) ELF startup code for Free Pascal
29
.type __progname,@object
37
.globl ___fpc_brk_addr /* heap management */
38
.type ___fpc_brk_addr,@object
39
.size ___fpc_brk_addr,4
47
.type _start,@function
58
movl %edi,U_SYSTEM_ARGV
60
movl %eax,U_SYSTEM_ARGC
62
leal 12(%ebp,%ebx,4),%esi
63
movl %esi,U_SYSTEM_ENVP
88
finit /* initialize fpu */
100
.type _haltproc,@function
104
movzwl U_SYSTEM_EXITCODE,%ebx
121
.size _start,.Lfe1-_start
124
.ident "GCC: (GNU) 2.7.2.1"