OSDN Git Service

Replace FSF snail mail address with URLs
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / bfin / crtn.S
1 /* Specialized code needed to support construction and destruction of
2    file-scope objects in C++ and Java code, and to support exception handling.
3    Copyright (C) 1999 Free Software Foundation, Inc.
4    Contributed by Charles-Antoine Gauthier (charles.gauthier@iit.nrc.ca).
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING.  If not, see
20 <http://www.gnu.org/licenses/>.  */
21
22 /* As a special exception, if you link this library with files
23    compiled with GCC to produce an executable, this does not cause
24    the resulting executable to be covered by the GNU General Public License.
25    This exception does not however invalidate any other reasons why
26    the executable file might be covered by the GNU General Public License.  */
27
28 /*
29  * This file supplies function epilogues for the .init and .fini sections.
30  * It is linked in after all other files.
31  */
32
33         .file   "crtn.o"
34         .ident  "GNU C crtn.o"
35
36         .section .init
37         unlink; 
38 #if defined __ID_SHARED_LIB__
39         P5 = [SP++];
40 #elif defined __BFIN_FDPIC__
41         P3 = [SP++];
42 #endif
43         rts;
44
45         .section .fini
46         unlink;
47 #if defined __ID_SHARED_LIB__
48         P5 = [SP++];
49 #elif defined __BFIN_FDPIC__
50         P3 = [SP++];
51 #endif
52         rts;
53
54 .section .note.GNU-stack,"",%progbits