1/* crtn.s for eabi 2 Copyright (C) 1996, 2000 Free Software Foundation, Inc. 3 Written By Michael Meissner 4 5This file is free software; you can redistribute it and/or modify it 6under the terms of the GNU General Public License as published by the 7Free Software Foundation; either version 2, or (at your option) any 8later version. 9 10In addition to the permissions in the GNU General Public License, the 11Free Software Foundation gives you unlimited permission to link the 12compiled version of this file with other programs, and to distribute 13those programs without any restriction coming from the use of this 14file. (The General Public License restrictions do apply in other 15respects; for example, they cover modification of the file, and 16distribution when not linked into another program.) 17 18This file is distributed in the hope that it will be useful, but 19WITHOUT ANY WARRANTY; without even the implied warranty of 20MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21General Public License for more details. 22 23You should have received a copy of the GNU General Public License 24along with this program; see the file COPYING. If not, write to 25the Free Software Foundation, 51 Franklin Street, Fifth Floor, 26Boston, MA 02110-1301, USA. 27 28 As a special exception, if you link this library with files 29 compiled with GCC to produce an executable, this does not cause 30 the resulting executable to be covered by the GNU General Public License. 31 This exception does not however invalidate any other reasons why 32 the executable file might be covered by the GNU General Public License. 33 34 */ 35 36/* This file just supplies labeled ending points for the .got* and other 37 special sections. It is linked in last after other modules. */ 38 39 .file "crtn.s" 40 .ident "GNU C crtn.s" 41 42#ifndef __powerpc64__ 43 .section ".got","aw" 44 .globl __GOT_END__ 45 .type __GOT_END__,@object 46__GOT_END__: 47 48 .section ".got1","aw" 49 .globl __GOT1_END__ 50 .type __GOT1_END__,@object 51__GOT1_END__: 52 53 .section ".got2","aw" 54 .globl __GOT2_END__ 55 .type __GOT2_END__,@object 56__GOT2_END__: 57 58 .section ".fixup","aw" 59 .globl __FIXUP_END__ 60 .type __FIXUP_END__,@object 61__FIXUP_END__: 62 63 .section ".ctors","aw" 64 .globl __CTOR_END__ 65 .type __CTOR_END__,@object 66__CTOR_END__: 67 68 .section ".dtors","aw" 69 .globl __DTOR_END__ 70 .type __DTOR_END__,@object 71__DTOR_END__: 72 73 .section ".sdata","aw" 74 .globl __SDATA_END__ 75 .type __SDATA_END__,@object 76__SDATA_END__: 77 78 .section ".sbss","aw",@nobits 79 .globl __SBSS_END__ 80 .type __SBSS_END__,@object 81__SBSS_END__: 82 83 .section ".sdata2","a" 84 .globl __SDATA2_END__ 85 .type __SDATA2_END__,@object 86__SDATA2_END__: 87 88 .section ".sbss2","a" 89 .globl __SBSS2_END__ 90 .type __SBSS2_END__,@object 91__SBSS2_END__: 92 93 .section ".gcc_except_table","aw" 94 .globl __EXCEPT_END__ 95 .type __EXCEPT_END__,@object 96__EXCEPT_END__: 97 98 .section ".eh_frame","aw" 99 .globl __EH_FRAME_END__ 100 .type __EH_FRAME_END__,@object 101__EH_FRAME_END__: 102 .long 0 103 104/* Tail of __init function used for static constructors. */ 105 .section ".init","ax" 106 lwz 0,20(1) 107 mtlr 0 108 addi 1,1,16 109 blr 110 111/* Tail of __fini function used for static destructors. */ 112 .section ".fini","ax" 113 lwz 0,20(1) 114 mtlr 0 115 addi 1,1,16 116 blr 117#endif 118