Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/microblaze/crti.s @ 68:561a7518be6b
update gcc-4.6
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 21 Aug 2011 07:07:55 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:f6334be47118 | 68:561a7518be6b |
---|---|
1 /* crti.s for __init, __fini | |
2 This file supplies the prologue for __init and __fini routines | |
3 | |
4 Copyright 2009, 2010 Free Software Foundation, Inc. | |
5 | |
6 Contributed by Michael Eager <eager@eagercon.com>. | |
7 | |
8 This file is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
10 Free Software Foundation; either version 3, or (at your option) any | |
11 later version. | |
12 | |
13 GCC is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
16 License for more details. | |
17 | |
18 Under Section 7 of GPL version 3, you are granted additional | |
19 permissions described in the GCC Runtime Library Exception, version | |
20 3.1, as published by the Free Software Foundation. | |
21 | |
22 You should have received a copy of the GNU General Public License and | |
23 a copy of the GCC Runtime Library Exception along with this program; | |
24 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
25 <http://www.gnu.org/licenses/>. */ | |
26 | |
27 .section .init, "ax" | |
28 .global __init | |
29 .align 2 | |
30 __init: | |
31 addik r1, r1, -8 | |
32 sw r15, r0, r1 | |
33 | |
34 .section .fini, "ax" | |
35 .global __fini | |
36 .align 2 | |
37 __fini: | |
38 addik r1, r1, -8 | |
39 sw r15, r0, r1 |