1 /* PLT trampolines. PPC32 version.
2 Copyright (C) 2005 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, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24 .globl _dl_runtime_resolve
25 .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.
33 # The code that calls this has put parameters for `fixup' in r12 and r11.
39 # We also need to save some of the condition register fields
48 # 'fixup' returns the address we want to branch to.
50 # Put the registers back...
64 # ...unwind the stack frame, and jump to the PLT entry we updated.
67 .size _dl_runtime_resolve,.-_dl_runtime_resolve
71 .globl _dl_prof_resolve
72 .type _dl_prof_resolve,@function
74 # We need to save the registers used to pass parameters, and register 0,
75 # which is used by _mcount; the registers are saved in a stack frame.
117 # The code that calls this has put parameters for `fixup' in r12 and r11.
123 # We also need to save some of the condition register fields.
131 # Save the floating point registers
140 # XXX TODO: store vmx registers
141 # Load the extra parameters.
146 bl _dl_profile_fixup@local
147 # 'fixup' returns the address we want to branch to.
149 # Put the registers back...
163 # Load the floating point registers.
172 # ...unwind the stack frame, and jump to the PLT entry we updated.
175 .size _dl_prof_resolve,.-_dl_prof_resolve