link.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Copyright (C) 2005-2026 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. typedef union
  18. {
  19. float s;
  20. double d;
  21. long double q;
  22. } La_aarch64_vector;
  23. /* Registers for entry into PLT on AArch64. */
  24. typedef struct La_aarch64_regs
  25. {
  26. uint64_t lr_xreg[9];
  27. La_aarch64_vector lr_vreg[8];
  28. uint64_t lr_sp;
  29. uint64_t lr_lr;
  30. void *lr_vpcs;
  31. } La_aarch64_regs;
  32. /* Return values for calls from PLT on AArch64. */
  33. typedef struct La_aarch64_retval
  34. {
  35. /* Up to eight integer registers can be used for a return value. */
  36. uint64_t lrv_xreg[8];
  37. /* Up to eight V registers can be used for a return value. */
  38. La_aarch64_vector lrv_vreg[8];
  39. void *lrv_vpcs;
  40. } La_aarch64_retval;
  41. __BEGIN_DECLS
  42. extern ElfW(Addr)
  43. la_aarch64_gnu_pltenter (ElfW(Sym) *__sym, unsigned int __ndx,
  44. uintptr_t *__refcook,
  45. uintptr_t *__defcook,
  46. La_aarch64_regs *__regs,
  47. unsigned int *__flags,
  48. const char *__symname,
  49. long int *__framesizep);
  50. extern unsigned int
  51. la_aarch64_gnu_pltexit (ElfW(Sym) *__sym, unsigned int __ndx,
  52. uintptr_t *__refcook,
  53. uintptr_t *__defcook,
  54. const La_aarch64_regs *__inregs,
  55. La_aarch64_retval *__outregs,
  56. const char *__symname);
  57. __END_DECLS