Back to index

glibc  2.9
link.h
Go to the documentation of this file.
00001 /* Copyright (C) 2005 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #ifndef       _LINK_H
00020 # error "Never include <bits/link.h> directly; use <link.h> instead."
00021 #endif
00022 
00023 #include <sgidefs.h>
00024 
00025 #if _MIPS_SIM == _ABIO32
00026 
00027 /* Registers for entry into PLT on MIPS.  */
00028 typedef struct La_mips_32_regs
00029 {
00030   uint32_t lr_reg[4]; /* $a0 through $a3 */
00031   double lr_fpreg[2]; /* $f12 and $f14 */
00032   uint32_t lr_ra;
00033   uint32_t lr_sp;
00034 } La_mips_32_regs;
00035 
00036 /* Return values for calls from PLT on MIPS.  */
00037 typedef struct La_mips_32_retval
00038 {
00039   uint32_t lrv_v0;
00040   uint32_t lrv_v1;
00041   double lrv_f0;
00042   double lrv_f2;
00043 } La_mips_32_retval;
00044 
00045 #else
00046 
00047 typedef struct La_mips_64_regs
00048 {
00049   uint64_t lr_reg[8]; /* $a0 through $a7 */
00050   double lr_fpreg[8]; /* $f12 throgh $f19 */
00051   uint64_t lr_ra;
00052   uint64_t lr_sp;
00053 } La_mips_64_regs;
00054 
00055 /* Return values for calls from PLT on MIPS.  */
00056 typedef struct La_mips_64_retval
00057 {
00058   uint64_t lrv_v0;
00059   uint64_t lrv_v1;
00060   double lrv_f0;
00061   double lrv_f2;
00062 } La_mips_64_retval;
00063 
00064 #endif
00065 
00066 __BEGIN_DECLS
00067 
00068 #if _MIPS_SIM == _ABIO32
00069 
00070 extern Elf32_Addr la_mips_o32_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
00071                                        uintptr_t *__refcook,
00072                                        uintptr_t *__defcook,
00073                                        La_mips_32_regs *__regs,
00074                                        unsigned int *__flags,
00075                                        const char *__symname,
00076                                        long int *__framesizep);
00077 extern unsigned int la_mips_o32_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
00078                                         uintptr_t *__refcook,
00079                                         uintptr_t *__defcook,
00080                                         const La_mips_32_regs *__inregs,
00081                                         La_mips_32_retval *__outregs,
00082                                         const char *symname);
00083 
00084 #elif _MIPS_SIM == _ABIN32
00085 
00086 extern Elf32_Addr la_mips_n32_gnu_pltenter (Elf32_Sym *__sym, unsigned int __ndx,
00087                                        uintptr_t *__refcook,
00088                                        uintptr_t *__defcook,
00089                                        La_mips_64_regs *__regs,
00090                                        unsigned int *__flags,
00091                                        const char *__symname,
00092                                        long int *__framesizep);
00093 extern unsigned int la_mips_n32_gnu_pltexit (Elf32_Sym *__sym, unsigned int __ndx,
00094                                         uintptr_t *__refcook,
00095                                         uintptr_t *__defcook,
00096                                         const La_mips_64_regs *__inregs,
00097                                         La_mips_64_retval *__outregs,
00098                                         const char *symname);
00099 
00100 #else
00101 
00102 extern Elf64_Addr la_mips_n64_gnu_pltenter (Elf64_Sym *__sym, unsigned int __ndx,
00103                                        uintptr_t *__refcook,
00104                                        uintptr_t *__defcook,
00105                                        La_mips_64_regs *__regs,
00106                                        unsigned int *__flags,
00107                                        const char *__symname,
00108                                        long int *__framesizep);
00109 extern unsigned int la_mips_n64_gnu_pltexit (Elf64_Sym *__sym, unsigned int __ndx,
00110                                         uintptr_t *__refcook,
00111                                         uintptr_t *__defcook,
00112                                         const La_mips_64_regs *__inregs,
00113                                         La_mips_64_retval *__outregs,
00114                                         const char *symname);
00115 
00116 #endif
00117 
00118 __END_DECLS