1 /* PLT trampolines. PPC32 version.
2 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
23 .globl _dl_runtime_resolve
24 .type _dl_runtime_resolve,@function
27 # We need to save the registers used to pass parameters, and register 0,
28 # which is used by _mcount; the registers are saved in a stack frame.
30 cfi_adjust_cfa_offset (64)
34 # The code that calls this has put parameters for `fixup' in r12 and r11.
40 # We also need to save some of the condition register fields
42 # Don't clobber the caller's LRSAVE, it is needed by _mcount.
51 # 'fixup' returns the address we want to branch to.
53 # Put the registers back...
67 # ...unwind the stack frame, and jump to the PLT entry we updated.
71 .size _dl_runtime_resolve,.-_dl_runtime_resolve
75 .globl _dl_prof_resolve
76 .type _dl_prof_resolve,@function
79 # We need to save the registers used to pass parameters, and register 0,
80 # which is used by _mcount; the registers are saved in a stack frame.
82 cfi_adjust_cfa_offset (320)
123 # The code that calls this has put parameters for `fixup' in r12 and r11.
129 # We also need to save some of the condition register fields.
131 # Don't clobber the caller's LRSAVE, it is needed by _mcount.
139 # Save the floating point registers
148 # XXX TODO: store vmx registers
149 # Load the extra parameters.
154 bl _dl_profile_fixup@local
155 # 'fixup' returns the address we want to branch to.
157 # Put the registers back...
171 # Load the floating point registers.
180 # ...unwind the stack frame, and jump to the PLT entry we updated.
184 .size _dl_prof_resolve,.-_dl_prof_resolve