1 /* Run-time dynamic linker data structures for loaded ELF shared objects. 2 Copyright (C) 1995-2022 Free Software Foundation, Inc. 3 This file is part of the GNU C Library. 4 5 The GNU C Library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 The GNU C Library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with the GNU C Library; if not, see 17 <https://www.gnu.org/licenses/>. */ 18 19 #ifndef _POWERPC_LDSODEFS_H 20 #define _POWERPC_LDSODEFS_H 1 21 22 #include <elf.h> 23 #include <cpu-features.h> 24 25 struct La_ppc32_regs; 26 struct La_ppc32_retval; 27 struct La_ppc64_regs; 28 struct La_ppc64_retval; 29 struct La_ppc64v2_regs; 30 struct La_ppc64v2_retval; 31 32 #define ARCH_PLTENTER_MEMBERS \ 33 Elf32_Addr (*ppc32_gnu_pltenter) (Elf32_Sym *, unsigned int, uintptr_t *, \ 34 uintptr_t *, struct La_ppc32_regs *, \ 35 unsigned int *, const char *name, \ 36 long int *framesizep); \ 37 Elf64_Addr (*ppc64_gnu_pltenter) (Elf64_Sym *, unsigned int, uintptr_t *, \ 38 uintptr_t *, struct La_ppc64_regs *, \ 39 unsigned int *, const char *name, \ 40 long int *framesizep); \ 41 Elf64_Addr (*ppc64v2_gnu_pltenter) (Elf64_Sym *, unsigned int, \ 42 uintptr_t *, uintptr_t *, \ 43 struct La_ppc64v2_regs *, \ 44 unsigned int *, const char *name, \ 45 long int *framesizep) 46 47 #define ARCH_PLTEXIT_MEMBERS \ 48 unsigned int (*ppc32_gnu_pltexit) (Elf32_Sym *, unsigned int, \ 49 uintptr_t *, \ 50 uintptr_t *, \ 51 const struct La_ppc32_regs *, \ 52 struct La_ppc32_retval *, \ 53 const char *); \ 54 unsigned int (*ppc64_gnu_pltexit) (Elf64_Sym *, unsigned int, \ 55 uintptr_t *, \ 56 uintptr_t *, \ 57 const struct La_ppc64_regs *, \ 58 struct La_ppc64_retval *, \ 59 const char *); \ 60 unsigned int (*ppc64v2_gnu_pltexit) (Elf64_Sym *, unsigned int, \ 61 uintptr_t *, \ 62 uintptr_t *, \ 63 const struct La_ppc64v2_regs *,\ 64 struct La_ppc64v2_retval *, \ 65 const char *) 66 67 #include_next <ldsodefs.h> 68 69 #endif 70