crti.S revision 1.1
1285SN/A# crti.s for ELF 2396SN/A 3285SN/A# Copyright (C) 1992-2013 Free Software Foundation, Inc. 4285SN/A# Written By David Vinayak Henkel-Wallace, June 1992 5285SN/A# 6285SN/A# This file is free software; you can redistribute it and/or modify it 7285SN/A# under the terms of the GNU General Public License as published by the 8285SN/A# Free Software Foundation; either version 3, or (at your option) any 9285SN/A# later version. 10285SN/A# 11285SN/A# This file is distributed in the hope that it will be useful, but 12285SN/A# WITHOUT ANY WARRANTY; without even the implied warranty of 13285SN/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14285SN/A# General Public License for more details. 15285SN/A# 16285SN/A# Under Section 7 of GPL version 3, you are granted additional 17285SN/A# permissions described in the GCC Runtime Library Exception, version 18285SN/A# 3.1, as published by the Free Software Foundation. 19285SN/A# 20285SN/A# You should have received a copy of the GNU General Public License and 21285SN/A# a copy of the GCC Runtime Library Exception along with this program; 22285SN/A# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23285SN/A# <http://www.gnu.org/licenses/>. 24285SN/A 25285SN/A# This file just make a stack frame for the contents of the .fini and 26285SN/A# .init sections. Users may put any desired instructions in those 27285SN/A# sections. 28285SN/A 29285SN/A .section ".init" 30285SN/A .global _init 31285SN/A .type _init,#function 32285SN/A .align 4 33285SN/A_init: 34285SN/A st rp, @-r15 35285SN/A enter #4 36285SN/A 37521SN/A # These nops are here to align the end of this code with a 16 byte 38285SN/A # boundary. The linker will start inserting code into the .init 39285SN/A # section at such a boundary. 40285SN/A 41285SN/A nop 42285SN/A nop 43285SN/A nop 44 nop 45 nop 46 nop 47 48 49 .section ".fini" 50 .global _fini 51 .type _fini,#function 52 .align 4 53_fini: 54 st rp, @-r15 55 enter #4 56 nop 57 nop 58 nop 59 nop 60 nop 61 nop 62