/* Machine-specific declarations for dynamic linker interface. wasm32 version. Copyright (C) 2005-2026 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef _LINK_H # error "Never include directly; use instead." #endif /* wasm32-hwjs has no register-based PLT trampoline: cross-module calls go through the host's wasm-module instantiation + the shared __indirect_function_table, not an ELF PLT. The LD_AUDIT la_*_gnu_pltenter/ pltexit register-snapshot interface therefore carries no machine registers. These types exist so and the audit headers compile; the audit register path is not wired on this target (see HWJS-B-1-OPENER.md B-1.e: glibc's real dynamic loading rides the wasm module-instantiation substrate). */ typedef struct La_wasm32_regs { /* No callee-visible argument registers on wasm: arguments are passed on the wasm value stack / via the linear-memory shadow stack. */ unsigned long int lr_reserved; } La_wasm32_regs; /* Return values for calls from PLT on wasm32. */ typedef struct La_wasm32_retval { unsigned long int lrv_reserved; } La_wasm32_retval; __BEGIN_DECLS extern ElfW(Addr) la_wasm32_gnu_pltenter (ElfW(Sym) *__sym, unsigned int __ndx, uintptr_t *__refcook, uintptr_t *__defcook, La_wasm32_regs *__regs, unsigned int *__flags, const char *__symname, long int *__framesizep); extern unsigned int la_wasm32_gnu_pltexit (ElfW(Sym) *__sym, unsigned int __ndx, uintptr_t *__refcook, uintptr_t *__defcook, const La_wasm32_regs *__inregs, La_wasm32_retval *__outregs, const char *__symname); __END_DECLS