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 
00024 #if __ELF_NATIVE_CLASS == 32
00025 
00026 /* Registers for entry into PLT on s390-32.  */
00027 typedef struct La_s390_32_regs
00028 {
00029   uint32_t lr_r2;
00030   uint32_t lr_r3;
00031   uint32_t lr_r4;
00032   uint32_t lr_r5;
00033   uint32_t lr_r6;
00034   double lr_fp0;
00035   double lr_fp2;
00036 } La_s390_32_regs;
00037 
00038 /* Return values for calls from PLT on s390-32.  */
00039 typedef struct La_s390_32_retval
00040 {
00041   uint32_t lrv_r2;
00042   uint32_t lrv_r3;
00043   double lrv_fp0;
00044 } La_s390_32_retval;
00045 
00046 
00047 __BEGIN_DECLS
00048 
00049 extern Elf32_Addr la_s390_32_gnu_pltenter (Elf32_Sym *__sym,
00050                                       unsigned int __ndx,
00051                                       uintptr_t *__refcook,
00052                                       uintptr_t *__defcook,
00053                                       La_s390_32_regs *__regs,
00054                                       unsigned int *__flags,
00055                                       const char *__symname,
00056                                       long int *__framesizep);
00057 extern unsigned int la_s390_32_gnu_pltexit (Elf32_Sym *__sym,
00058                                        unsigned int __ndx,
00059                                        uintptr_t *__refcook,
00060                                        uintptr_t *__defcook,
00061                                        const La_s390_32_regs *__inregs,
00062                                        La_s390_32_retval *__outregs,
00063                                        const char *symname);
00064 
00065 __END_DECLS
00066 
00067 #else
00068 
00069 /* Registers for entry into PLT on s390-64.  */
00070 typedef struct La_s390_64_regs
00071 {
00072   uint64_t lr_r2;
00073   uint64_t lr_r3;
00074   uint64_t lr_r4;
00075   uint64_t lr_r5;
00076   uint64_t lr_r6;
00077   double lr_fp0;
00078   double lr_fp2;
00079   double lr_fp4;
00080   double lr_fp6;
00081 } La_s390_64_regs;
00082 
00083 /* Return values for calls from PLT on s390-64.  */
00084 typedef struct La_s390_64_retval
00085 {
00086   uint64_t lrv_r2;
00087   double lrv_fp0;
00088 } La_s390_64_retval;
00089 
00090 
00091 __BEGIN_DECLS
00092 
00093 extern Elf64_Addr la_s390_64_gnu_pltenter (Elf64_Sym *__sym,
00094                                       unsigned int __ndx,
00095                                       uintptr_t *__refcook,
00096                                       uintptr_t *__defcook,
00097                                       La_s390_64_regs *__regs,
00098                                       unsigned int *__flags,
00099                                       const char *__symname,
00100                                       long int *__framesizep);
00101 extern unsigned int la_s390_64_gnu_pltexit (Elf64_Sym *__sym,
00102                                        unsigned int __ndx,
00103                                        uintptr_t *__refcook,
00104                                        uintptr_t *__defcook,
00105                                        const La_s390_64_regs *__inregs,
00106                                        La_s390_64_retval *__outregs,
00107                                        const char *symname);
00108 
00109 __END_DECLS
00110 
00111 #endif