1 /* Copyright (C) 2005, 2009 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the 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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 # error "Never include <bits/link.h> directly; use <link.h> instead."
25 #if _MIPS_SIM == _ABIO32
27 /* Registers for entry into PLT on MIPS. */
28 typedef struct La_mips_32_regs
30 uint32_t lr_reg
[4]; /* $a0 through $a3 */
31 double lr_fpreg
[2]; /* $f12 and $f14 */
36 /* Return values for calls from PLT on MIPS. */
37 typedef struct La_mips_32_retval
47 typedef struct La_mips_64_regs
49 uint64_t lr_reg
[8]; /* $a0 through $a7 */
50 double lr_fpreg
[8]; /* $f12 throgh $f19 */
55 /* Return values for calls from PLT on MIPS. */
56 typedef struct La_mips_64_retval
68 #if _MIPS_SIM == _ABIO32
70 extern Elf32_Addr
la_mips_o32_gnu_pltenter (Elf32_Sym
*__sym
, unsigned int __ndx
,
73 La_mips_32_regs
*__regs
,
74 unsigned int *__flags
,
75 const char *__symname
,
76 long int *__framesizep
);
77 extern unsigned int la_mips_o32_gnu_pltexit (Elf32_Sym
*__sym
, unsigned int __ndx
,
80 const La_mips_32_regs
*__inregs
,
81 La_mips_32_retval
*__outregs
,
82 const char *__symname
);
84 #elif _MIPS_SIM == _ABIN32
86 extern Elf32_Addr
la_mips_n32_gnu_pltenter (Elf32_Sym
*__sym
, unsigned int __ndx
,
89 La_mips_64_regs
*__regs
,
90 unsigned int *__flags
,
91 const char *__symname
,
92 long int *__framesizep
);
93 extern unsigned int la_mips_n32_gnu_pltexit (Elf32_Sym
*__sym
, unsigned int __ndx
,
96 const La_mips_64_regs
*__inregs
,
97 La_mips_64_retval
*__outregs
,
98 const char *__symname
);
102 extern Elf64_Addr
la_mips_n64_gnu_pltenter (Elf64_Sym
*__sym
, unsigned int __ndx
,
103 uintptr_t *__refcook
,
104 uintptr_t *__defcook
,
105 La_mips_64_regs
*__regs
,
106 unsigned int *__flags
,
107 const char *__symname
,
108 long int *__framesizep
);
109 extern unsigned int la_mips_n64_gnu_pltexit (Elf64_Sym
*__sym
, unsigned int __ndx
,
110 uintptr_t *__refcook
,
111 uintptr_t *__defcook
,
112 const La_mips_64_regs
*__inregs
,
113 La_mips_64_retval
*__outregs
,
114 const char *__symname
);