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