]>
Commit | Line | Data |
---|---|---|
54a0bb9d | 1 | # End of .init and .fini sections. |
f1717362 | 2 | # Copyright (C) 2003-2016 Free Software Foundation, Inc. |
54a0bb9d | 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 | |
6bc9506f | 6 | # the Free Software Foundation; either version 3, or (at your option) |
54a0bb9d | 7 | # any later version. |
8 | # | |
54a0bb9d | 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 | # | |
6bc9506f | 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/>. | |
22 | ||
54a0bb9d | 23 | |
24 | # This file just makes sure that the .fini and .init sections do in | |
25 | # fact return. Users may put any desired instructions in those sections. | |
26 | # This file is the last thing linked into any executable. | |
27 | ||
6d5d2814 | 28 | #include "xtensa-config.h" |
29 | ||
54a0bb9d | 30 | .section .init |
6d5d2814 | 31 | #if XCHAL_HAVE_WINDOWED && !__XTENSA_CALL0_ABI__ |
54a0bb9d | 32 | retw |
6d5d2814 | 33 | #else |
34 | l32i a0, sp, 0 | |
35 | addi sp, sp, 32 | |
36 | ret | |
37 | #endif | |
54a0bb9d | 38 | |
39 | .section .fini | |
6d5d2814 | 40 | #if XCHAL_HAVE_WINDOWED && !__XTENSA_CALL0_ABI__ |
54a0bb9d | 41 | retw |
6d5d2814 | 42 | #else |
43 | l32i a0, sp, 0 | |
44 | addi sp, sp, 32 | |
45 | ret | |
46 | #endif |