xref: /OK3568_Linux_fs/kernel/arch/s390/include/asm/module.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _ASM_S390_MODULE_H
3*4882a593Smuzhiyun #define _ASM_S390_MODULE_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <asm-generic/module.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun /*
8*4882a593Smuzhiyun  * This file contains the s390 architecture specific module code.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun struct mod_arch_syminfo
12*4882a593Smuzhiyun {
13*4882a593Smuzhiyun 	unsigned long got_offset;
14*4882a593Smuzhiyun 	unsigned long plt_offset;
15*4882a593Smuzhiyun 	int got_initialized;
16*4882a593Smuzhiyun 	int plt_initialized;
17*4882a593Smuzhiyun };
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun struct mod_arch_specific
20*4882a593Smuzhiyun {
21*4882a593Smuzhiyun 	/* Starting offset of got in the module core memory. */
22*4882a593Smuzhiyun 	unsigned long got_offset;
23*4882a593Smuzhiyun 	/* Starting offset of plt in the module core memory. */
24*4882a593Smuzhiyun 	unsigned long plt_offset;
25*4882a593Smuzhiyun 	/* Size of the got. */
26*4882a593Smuzhiyun 	unsigned long got_size;
27*4882a593Smuzhiyun 	/* Size of the plt. */
28*4882a593Smuzhiyun 	unsigned long plt_size;
29*4882a593Smuzhiyun 	/* Number of symbols in syminfo. */
30*4882a593Smuzhiyun 	int nsyms;
31*4882a593Smuzhiyun 	/* Additional symbol information (got and plt offsets). */
32*4882a593Smuzhiyun 	struct mod_arch_syminfo *syminfo;
33*4882a593Smuzhiyun };
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun #endif /* _ASM_S390_MODULE_H */
36