link.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Copyright (C) 2005-2021 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public License as
  5. published by the Free Software Foundation; either version 2.1 of the
  6. License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, see
  13. <https://www.gnu.org/licenses/>. */
  14. #ifndef _LINK_H
  15. # error "Never include <bits/link.h> directly; use <link.h> instead."
  16. #endif
  17. /* Registers for entry into PLT on AArch64. */
  18. typedef struct La_aarch64_regs
  19. {
  20. uint64_t lr_xreg[8];
  21. uint64_t lr_dreg[8];
  22. uint64_t lr_sp;
  23. uint64_t lr_lr;
  24. } La_aarch64_regs;
  25. /* Return values for calls from PLT on AArch64. */
  26. typedef struct La_aarch64_retval
  27. {
  28. /* Up to two integer registers can be used for a return value. */
  29. uint64_t lrv_xreg[2];
  30. /* Up to four D registers can be used for a return value. */
  31. uint64_t lrv_dreg[4];
  32. } La_aarch64_retval;
  33. __BEGIN_DECLS
  34. extern ElfW(Addr)
  35. la_aarch64_gnu_pltenter (ElfW(Sym) *__sym, unsigned int __ndx,
  36. uintptr_t *__refcook,
  37. uintptr_t *__defcook,
  38. La_aarch64_regs *__regs,
  39. unsigned int *__flags,
  40. const char *__symname,
  41. long int *__framesizep);
  42. extern unsigned int
  43. la_aarch64_gnu_pltexit (ElfW(Sym) *__sym, unsigned int __ndx,
  44. uintptr_t *__refcook,
  45. uintptr_t *__defcook,
  46. const La_aarch64_regs *__inregs,
  47. La_aarch64_retval *__outregs,
  48. const char *__symname);
  49. __END_DECLS