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, write to the Free
17 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA
24 .globl _dl_runtime_resolve
25 .type _dl_runtime_resolve,@function
28 # We need to save the registers used to pass parameters, and register 0,
29 # which is used by _mcount; the registers are saved in a stack frame.
31 cfi_adjust_cfa_offset (64)
35 # The code that calls this has put parameters for `fixup' in r12 and r11.
41 # We also need to save some of the condition register fields
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.
138 # Save the floating point registers
147 # XXX TODO: store vmx registers
148 # Load the extra parameters.
153 bl _dl_profile_fixup@local
154 # 'fixup' returns the address we want to branch to.
156 # Put the registers back...
170 # Load the floating point registers.
179 # ...unwind the stack frame, and jump to the PLT entry we updated.
183 .size _dl_prof_resolve,.-_dl_prof_resolve