^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _ASM_IA64_MODULE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _ASM_IA64_MODULE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <asm-generic/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * IA-64-specific support for kernel module loader.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * Copyright (C) 2003 Hewlett-Packard Co
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) * David Mosberger-Tang <davidm@hpl.hp.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct elf64_shdr; /* forward declration */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) struct mod_arch_specific {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /* Used only at module load time. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) struct elf64_shdr *core_plt; /* core PLT section */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) struct elf64_shdr *init_plt; /* init PLT section */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct elf64_shdr *got; /* global offset table */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) struct elf64_shdr *opd; /* official procedure descriptors */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) struct elf64_shdr *unwind; /* unwind-table section */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) unsigned long gp; /* global-pointer for module */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) unsigned int next_got_entry; /* index of next available got entry */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) /* Used at module run and cleanup time. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) void *core_unw_table; /* core unwind-table cookie returned by unwinder */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) void *init_unw_table; /* init unwind-table cookie returned by unwinder */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) void *opd_addr; /* symbolize uses .opd to get to actual function */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) unsigned long opd_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define ARCH_SHF_SMALL SHF_IA_64_SHORT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #endif /* _ASM_IA64_MODULE_H */