]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config/xtensa/crti.S
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / xtensa / crti.S
CommitLineData
1f37a5b2 1# Start .init and .fini sections.
a945c346 2# Copyright (C) 2003-2024 Free Software Foundation, Inc.
1f37a5b2
BW
3#
4# This file is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by
748086b7 6# the Free Software Foundation; either version 3, or (at your option)
1f37a5b2
BW
7# any later version.
8#
1f37a5b2
BW
9# GCC is distributed in the hope that it will be useful, but WITHOUT ANY
10# WARRANTY; without even the implied warranty of MERCHANTABILITY or
11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12# for more details.
13#
748086b7
JJ
14# Under Section 7 of GPL version 3, you are granted additional
15# permissions described in the GCC Runtime Library Exception, version
16# 3.1, as published by the Free Software Foundation.
17#
18# You should have received a copy of the GNU General Public License and
19# a copy of the GCC Runtime Library Exception along with this program;
20# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
21# <http://www.gnu.org/licenses/>.
1f37a5b2
BW
22
23# This file just makes a stack frame for the contents of the .fini and
24# .init sections. Users may put any desired instructions in those
25# sections.
26
eb9491ba 27#include "xtensa-config-builtin.h"
dfccfad9 28
6360bf9a
MF
29/* An executable stack is *not* required for these functions. */
30#if defined(__ELF__) && defined(__linux__)
31.section .note.GNU-stack,"",%progbits
32.previous
33#endif
34
1f37a5b2
BW
35 .section .init
36 .globl _init
37 .type _init,@function
38 .align 4
39_init:
dfccfad9 40#if XCHAL_HAVE_WINDOWED && !__XTENSA_CALL0_ABI__
07154156 41 entry sp, 64
dfccfad9
BW
42#else
43 addi sp, sp, -32
44 s32i a0, sp, 0
45#endif
1f37a5b2
BW
46
47 .section .fini
48 .globl _fini
49 .type _fini,@function
50 .align 4
51_fini:
dfccfad9 52#if XCHAL_HAVE_WINDOWED && !__XTENSA_CALL0_ABI__
07154156 53 entry sp, 64
dfccfad9
BW
54#else
55 addi sp, sp, -32
56 s32i a0, sp, 0
57#endif