1 /* Copyright (C) 2005-2015 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, see
16 <http://www.gnu.org/licenses/>. */
19 # error "Never include <bits/link.h> directly; use <link.h> instead."
23 #if __ELF_NATIVE_CLASS == 32
25 /* Registers for entry into PLT on s390-32. */
26 typedef struct La_s390_32_regs
37 /* Return values for calls from PLT on s390-32. */
38 typedef struct La_s390_32_retval
48 extern Elf32_Addr
la_s390_32_gnu_pltenter (Elf32_Sym
*__sym
,
52 La_s390_32_regs
*__regs
,
53 unsigned int *__flags
,
54 const char *__symname
,
55 long int *__framesizep
);
56 extern unsigned int la_s390_32_gnu_pltexit (Elf32_Sym
*__sym
,
60 const La_s390_32_regs
*__inregs
,
61 La_s390_32_retval
*__outregs
,
68 /* Registers for entry into PLT on s390-64. */
69 typedef struct La_s390_64_regs
82 /* Return values for calls from PLT on s390-64. */
83 typedef struct La_s390_64_retval
92 extern Elf64_Addr
la_s390_64_gnu_pltenter (Elf64_Sym
*__sym
,
96 La_s390_64_regs
*__regs
,
97 unsigned int *__flags
,
98 const char *__symname
,
99 long int *__framesizep
);
100 extern unsigned int la_s390_64_gnu_pltexit (Elf64_Sym
*__sym
,
102 uintptr_t *__refcook
,
103 uintptr_t *__defcook
,
104 const La_s390_64_regs
*__inregs
,
105 La_s390_64_retval
*__outregs
,
106 const char *__symname
);