1 |
38 |
julius |
# crtn.asm for ELF
|
2 |
|
|
|
3 |
|
|
# Copyright (C) 1992, 1999 Free Software Foundation, Inc.
|
4 |
|
|
# Written By David Vinayak Henkel-Wallace, June 1992
|
5 |
|
|
#
|
6 |
|
|
# This file is free software; you can redistribute it and/or modify it
|
7 |
|
|
# under the terms of the GNU General Public License as published by the
|
8 |
|
|
# Free Software Foundation; either version 2, or (at your option) any
|
9 |
|
|
# later version.
|
10 |
|
|
#
|
11 |
|
|
# In addition to the permissions in the GNU General Public License, the
|
12 |
|
|
# Free Software Foundation gives you unlimited permission to link the
|
13 |
|
|
# compiled version of this file with other programs, and to distribute
|
14 |
|
|
# those programs without any restriction coming from the use of this
|
15 |
|
|
# file. (The General Public License restrictions do apply in other
|
16 |
|
|
# respects; for example, they cover modification of the file, and
|
17 |
|
|
# distribution when not linked into another program.)
|
18 |
|
|
#
|
19 |
|
|
# This file is distributed in the hope that it will be useful, but
|
20 |
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
22 |
|
|
# General Public License for more details.
|
23 |
|
|
#
|
24 |
|
|
# You should have received a copy of the GNU General Public License
|
25 |
|
|
# along with this program; see the file COPYING. If not, write to
|
26 |
|
|
# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
27 |
|
|
# Boston, MA 02110-1301, USA.
|
28 |
|
|
#
|
29 |
|
|
# As a special exception, if you link this library with files
|
30 |
|
|
# compiled with GCC to produce an executable, this does not cause
|
31 |
|
|
# the resulting executable to be covered by the GNU General Public License.
|
32 |
|
|
# This exception does not however invalidate any other reasons why
|
33 |
|
|
# the executable file might be covered by the GNU General Public License.
|
34 |
|
|
#
|
35 |
|
|
|
36 |
|
|
# This file just makes sure that the .fini and .init sections do in
|
37 |
|
|
# fact return. Users may put any desired instructions in those sections.
|
38 |
|
|
# This file is the last thing linked into any executable.
|
39 |
|
|
|
40 |
|
|
.file "crtn.s"
|
41 |
|
|
|
42 |
|
|
.section ".init"
|
43 |
|
|
.align 4
|
44 |
|
|
|
45 |
|
|
leave
|
46 |
|
|
ld @r15+,rp
|
47 |
|
|
ret
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
.section ".fini"
|
51 |
|
|
.align 4
|
52 |
|
|
|
53 |
|
|
leave
|
54 |
|
|
ld @r15+,rp
|
55 |
|
|
ret
|
56 |
|
|
|
57 |
|
|
# Th-th-th-that is all folks!
|