1 /* Special .init and .fini section support for SH.
2 Copyright (C) 2000, 2002 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 and/or
6 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 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 /* This file is compiled into assembly code which is then munged by a sed
21 script into two files: crti.s and crtn.s.
23 * crti.s puts a function prologue at the beginning of the
24 .init and .fini sections and defines global symbols for
25 those addresses, so they can be called as functions.
27 * crtn.s puts the corresponding function epilogues
28 in the .init and .fini sections. */
32 #include \"defs.h\"\n\
41 /*@_init_PROLOG_BEGINS*/\n\
45 .type _init,@function\n\
67 .long _GLOBAL_OFFSET_TABLE_\n\
69 .long __gmon_start__@PLT\n\
72 .long __gmon_start__\n\
79 /*@_init_PROLOG_ENDS*/\n\
81 /*@_init_EPILOG_BEGINS*/\n\
91 .weak __gmon_start__\n\
92 .type __gmon_start__,@function\n\
100 /*@_init_EPILOG_ENDS*/\n\
102 /*@_fini_PROLOG_BEGINS*/\n\
106 .type _fini,@function\n\
124 .long _GLOBAL_OFFSET_TABLE_\n\
127 /*@_fini_PROLOG_ENDS*/\n\
129 /*@_fini_EPILOG_BEGINS*/\n\
139 /*@_fini_EPILOG_ENDS*/\n\