1 /* Special .init and .fini section support for 64 bit S/390.
2 Copyright (C) 2003, 2009 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it
6 and/or modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 In addition to the permissions in the GNU Lesser General Public
11 License, the Free Software Foundation gives you unlimited
12 permission to link the compiled version of this file with other
13 programs, and to distribute those programs without any restriction
14 coming from the use of this file. (The Lesser General Public
15 License restrictions do apply in other respects; for example, they
16 cover modification of the file, and distribution when not linked
17 into another program.)
19 The GNU C Library is distributed in the hope that it will be
20 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
21 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU Lesser General Public License for more details.
24 You should have received a copy of the GNU Lesser General Public
25 License along with the GNU C Library; see the file COPYING.LIB. If
26 not, see <http://www.gnu.org/licenses/>. */
28 /* This file is compiled into assembly code which is then munged by a sed
29 script into two files: crti.s and crtn.s.
31 * crti.s puts a function prologue at the beginning of the
32 .init and .fini sections and defines global symbols for
33 those addresses, so they can be called as functions.
35 * crtn.s puts the corresponding function epilogues
36 in the .init and .fini sections. */
40 #include \"defs.h\"\n\
48 /*@_init_PROLOG_BEGINS*/\n\
54 .type _init,@function\n\
59 # need frame pointer 0\n\
62 # incoming args (stack) 0\n\
63 # function length 36\n\
68 LARL 12,_GLOBAL_OFFSET_TABLE_\n\
69 BRASL 14,__pthread_initialize_minimal_internal\n\
74 /*@_init_PROLOG_ENDS*/\n\
76 /*@_init_EPILOG_BEGINS*/\n\
87 /*@_init_EPILOG_ENDS*/\n\
89 /*@_fini_PROLOG_BEGINS*/\n\
94 .type _fini,@function\n\
99 # need frame pointer 0\n\
102 # incoming args (stack) 0\n\
103 # function length 30\n\
108 LARL 12,_GLOBAL_OFFSET_TABLE_\n\
113 /*@_fini_PROLOG_ENDS*/\n\
115 /*@_fini_EPILOG_BEGINS*/\n\
126 /*@_fini_EPILOG_ENDS*/\n\
128 /*@TRAILER_BEGINS*/\n\