| 1 | /* Copyright (C) 2005-2026 Free Software Foundation, Inc. |
| 2 | This file is part of the GNU C Library. |
| 3 | |
| 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. |
| 8 | |
| 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. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with the GNU C Library; if not, see |
| 16 | <https://www.gnu.org/licenses/>. */ |
| 17 | |
| 18 | #ifndef	_LINK_H |
| 19 | # error "Never include <bits/link.h> directly; use <link.h> instead." |
| 20 | #endif |
| 21 | |
| 22 | #if defined HAVE_S390_VX_ASM_SUPPORT |
| 23 | typedef char La_s390_vr[16]; |
| 24 | #endif |
| 25 | |
| 26 | /* Registers for entry into PLT on s390-64. */ |
| 27 | typedef struct La_s390_64_regs |
| 28 | { |
| 29 | uint64_t lr_r2; |
| 30 | uint64_t lr_r3; |
| 31 | uint64_t lr_r4; |
| 32 | uint64_t lr_r5; |
| 33 | uint64_t lr_r6; |
| 34 | double lr_fp0; |
| 35 | double lr_fp2; |
| 36 | double lr_fp4; |
| 37 | double lr_fp6; |
| 38 | # if defined HAVE_S390_VX_ASM_SUPPORT |
| 39 | La_s390_vr lr_v24; |
| 40 | La_s390_vr lr_v25; |
| 41 | La_s390_vr lr_v26; |
| 42 | La_s390_vr lr_v27; |
| 43 | La_s390_vr lr_v28; |
| 44 | La_s390_vr lr_v29; |
| 45 | La_s390_vr lr_v30; |
| 46 | La_s390_vr lr_v31; |
| 47 | # endif |
| 48 | } La_s390_64_regs; |
| 49 | |
| 50 | /* Return values for calls from PLT on s390-64. */ |
| 51 | typedef struct La_s390_64_retval |
| 52 | { |
| 53 | uint64_t lrv_r2; |
| 54 | double lrv_fp0; |
| 55 | # if defined HAVE_S390_VX_ASM_SUPPORT |
| 56 | La_s390_vr lrv_v24; |
| 57 | # endif |
| 58 | } La_s390_64_retval; |
| 59 | |
| 60 | |
| 61 | __BEGIN_DECLS |
| 62 | |
| 63 | extern Elf64_Addr la_s390_64_gnu_pltenter (Elf64_Sym *__sym, |
| 64 | 					 unsigned int __ndx, |
| 65 | 					 uintptr_t *__refcook, |
| 66 | 					 uintptr_t *__defcook, |
| 67 | 					 La_s390_64_regs *__regs, |
| 68 | 					 unsigned int *__flags, |
| 69 | 					 const char *__symname, |
| 70 | 					 long int *__framesizep); |
| 71 | extern unsigned int la_s390_64_gnu_pltexit (Elf64_Sym *__sym, |
| 72 | 					 unsigned int __ndx, |
| 73 | 					 uintptr_t *__refcook, |
| 74 | 					 uintptr_t *__defcook, |
| 75 | 					 const La_s390_64_regs *__inregs, |
| 76 | 					 La_s390_64_retval *__outregs, |
| 77 | 					 const char *__symname); |
| 78 | |
| 79 | __END_DECLS |