| 1 | /* Machine-specific declarations for dynamic linker interface, ARC version. |
| 2 | Copyright (C) 2020-2026 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	_LINK_H |
| 20 | # error "Never include <bits/link.h> directly; use <link.h> instead." |
| 21 | #endif |
| 22 | |
| 23 | /* Registers for entry into PLT on ARC. */ |
| 24 | typedef struct La_arc_regs |
| 25 | { |
| 26 | uint32_t lr_reg[8]; /* r0 through r7 (upto 8 args). */ |
| 27 | } La_arc_regs; |
| 28 | |
| 29 | /* Return values for calls from PLT on ARC. */ |
| 30 | typedef struct La_arc_retval |
| 31 | { |
| 32 | /* For ARCv2, a 64-bit integer return value can use 2 regs. */ |
| 33 | uint32_t lrv_reg[2]; |
| 34 | } La_arc_retval; |
| 35 | |
| 36 | __BEGIN_DECLS |
| 37 | |
| 38 | extern ElfW(Addr) la_arc_gnu_pltenter (ElfW(Sym) *__sym, unsigned int __ndx, |
| 39 | 					 uintptr_t *__refcook, |
| 40 | 					 uintptr_t *__defcook, |
| 41 | 					 La_arc_regs *__regs, |
| 42 | 					 unsigned int *__flags, |
| 43 | 					 const char *__symname, |
| 44 | 					 long int *__framesizep); |
| 45 | extern unsigned int la_arc_gnu_pltexit (ElfW(Sym) *__sym, unsigned int __ndx, |
| 46 | 					 uintptr_t *__refcook, |
| 47 | 					 uintptr_t *__defcook, |
| 48 | 					 const La_arc_regs *__inregs, |
| 49 | 					 La_arc_retval *__outregs, |
| 50 | 					 const char *symname); |
| 51 | |
| 52 | __END_DECLS |