1 /* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
2 This file was adapted from glibc sources.
4 This file is part of GCC.
6 GCC 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
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 into combinations with other programs,
14 and to distribute those combinations without any restriction coming
15 from the use of this file. (The General Public License restrictions
16 do apply in other respects; for example, they cover modification of
17 the file, and distribution when not linked into a combine
20 GCC is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with this program; see the file COPYING. If not, write to
27 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
28 Boston, MA 02110-1301, USA. */
30 /* The code in sections .init and .fini is supposed to be a single
31 regular function. The function in .init is called directly from
32 start in crt1.asm. The function in .fini is atexit()ed in crt1.asm
35 crti.asm contributes the prologue of a function to these sections,
36 and crtn.asm comes up the epilogue. STARTFILE_SPEC should list
37 crti.o before any other object files that might add code to .init
38 or .fini sections, and ENDFILE_SPEC should list crtn.o after any
42 /* The alignment below can't be smaller, otherwise the mova below
43 breaks. Yes, we might align just the label, but then we'd be
44 exchanging an alignment here for one there, since the code fragment
45 below ensures 4-byte alignment on __ELF__. */
58 #elif __SH5__ && ! __SHMEDIA__
81 0: .long _GLOBAL_OFFSET_TABLE_
84 #endif /* __SHMEDIA__ */
87 /* The alignment below can't be smaller, otherwise the mova below
88 breaks. Yes, we might align just the label, but then we'd be
89 exchanging an alignment here for one there, since the code fragment
90 below ensures 4-byte alignment on __ELF__. */
103 #elif __SH5__ && ! __SHMEDIA__
126 0: .long _GLOBAL_OFFSET_TABLE_
129 #endif /* __SHMEDIA__ */