1 /* Copyright (C) 1996 Free Software Foundation, Inc.
2 Contributed by Richard Henderson (rth@tamu.edu)
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If
16 not, write to the Free Software Foundation, Inc.,
17 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 * Tails of the constructor/destructor lists.
24 /* The __*TOR_END__ symbols are not global because when this file is used
25 in a shared library, we do not want the symbol to fall over to the
26 application's lists. */
42 * Fragment of the ELF _init routine that invokes our ctor startup
47 /* Since the bits of the _init function are spread across many
48 object files, each potentially with its own GP, we must
49 assume we need to load ours. Further, our .init section
50 can easily be more than 4MB away from our .text bits so we
55 jsr $26,__do_global_ctors_aux
57 /* Must match the alignment we got from crti.o else we get
58 zero-filled holes in our _init function and thense SIGILL. */
62 * Invoke our destructors in order.
68 .ent __do_global_ctors_aux
70 __do_global_ctors_aux:
72 /* GP already loaded in .init. */
76 .mask (1<<26)|(1<<9), -16
92 .end __do_global_ctors_aux