xref: /linux/scripts/module-common.c (revision bb9ae1a66c85eeb626864efd812c62026e126ec0)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/module.h>
4 /*
5  * Include build-salt.h after module.h in order to
6  * inherit the definitions.
7  */
8 #define INCLUDE_VERMAGIC
9 #include <linux/build-salt.h>
10 #include <linux/elfnote-lto.h>
11 #include <linux/vermagic.h>
12 
13 #ifdef CONFIG_UNWINDER_ORC
14 #include <asm/orc_header.h>
15 ORC_HEADER;
16 #endif
17 
18 BUILD_SALT;
19 BUILD_LTO_INFO;
20 
21 MODULE_INFO(vermagic, VERMAGIC_STRING);
22 
23 #ifdef CONFIG_MITIGATION_RETPOLINE
24 MODULE_INFO(retpoline, "Y");
25 #endif
26