1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
9 #include <asm/module.h>
13 /* pointer to module in temporary copy, freed at end of load_module() */
18 char *secstrings, *strtab;
19 unsigned long symoffs, stroffs, init_typeoffs, core_typeoffs;
20 struct _ddebug *debug;
21 unsigned int num_debug;
23 #ifdef CONFIG_KALLSYMS
24 unsigned long mod_kallsyms_init_off;
26 #ifdef CONFIG_MODULE_DECOMPRESS
28 unsigned int max_pages;
29 unsigned int used_pages;
32 unsigned int sym, str, mod, vers, info, pcpu;
36 extern int mod_verify_sig(const void *mod, struct load_info *info);
38 #ifdef CONFIG_MODULE_DECOMPRESS
39 int module_decompress(struct load_info *info, const void *buf, size_t size);
40 void module_decompress_cleanup(struct load_info *info);
42 static inline int module_decompress(struct load_info *info,
43 const void *buf, size_t size)
47 static inline void module_decompress_cleanup(struct load_info *info)