source: trunk/libs/newlib/src/libgloss/sparc_leon/crtn.S @ 607

Last change on this file since 607 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 2.1 KB
Line 
1
2!   Copyright (C) 1992 Free Software Foundation, Inc.
3!   Written By David Vinayak Henkel-Wallace, June 1992
4!
5! This file is free software; you can redistribute it and/or modify it
6! under the terms of the GNU General Public License as published by the
7! Free Software Foundation; either version 2, or (at your option) any
8! later version.
9!
10! In addition to the permissions in the GNU General Public License, the
11! Free Software Foundation gives you unlimited permission to link the
12! compiled version of this file with other programs, and to distribute
13! those programs without any restriction coming from the use of this
14! file.  (The General Public License restrictions do apply in other
15! respects; for example, they cover modification of the file, and
16! distribution when not linked into another program.)
17!
18! This file is distributed in the hope that it will be useful, but
19! WITHOUT ANY WARRANTY; without even the implied warranty of
20! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21! General Public License for more details.
22!
23! You should have received a copy of the GNU General Public License
24! along with this program; see the file COPYING.  If not, write to
25! the Free Software Foundation, 59 Temple Place - Suite 330,
26! Boston, MA 02111-1307, USA.
27!
28!    As a special exception, if you link this library with files
29!    compiled with GCC to produce an executable, this does not cause
30!    the resulting executable to be covered by the GNU General Public License.
31!    This exception does not however invalidate any other reasons why
32!    the executable file might be covered by the GNU General Public License.
33!
34
35! This file just makes sure that the .fini and .init sections do in
36! fact return.  Users may put any desired instructions in those sections.
37! This file is the last thing linked into any executable.
38
39        .file           "crtn.s"
40
41        .section        ".init"
42        .align          4
43#ifndef _FLAT
44        ret
45        restore
46#else
47        ld      [%sp+64], %o7
48        retl
49        add     %sp, 96, %sp
50#endif
51
52        .section        ".fini"
53        .align          4
54
55#ifndef _FLAT
56        ret
57        restore
58#else
59        ld      [%sp+64], %o7
60        retl
61        add     %sp, 96, %sp
62#endif
63
Note: See TracBrowser for help on using the repository browser.