diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2003-04-29 17:17:33 -0700 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2003-04-29 17:17:33 -0700 |
| commit | 67ac5b866bda838d9838faedad0435e3e84fb2bd (patch) | |
| tree | babf99dad94799fca5953c91bdf07488895ffbca /scripts/modpost.c | |
| parent | d1f880abc403575e9166ec673a855877352d3af3 (diff) | |
[PATCH] complete modinfo section
Restores .modinfo section, and uses it to store license and vermagic.
Diffstat (limited to 'scripts/modpost.c')
| -rw-r--r-- | scripts/modpost.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/modpost.c b/scripts/modpost.c index 1b94b2c73b28..13c33ccca090 100644 --- a/scripts/modpost.c +++ b/scripts/modpost.c @@ -404,9 +404,7 @@ add_header(struct buffer *b) buf_printf(b, "#include <linux/vermagic.h>\n"); buf_printf(b, "#include <linux/compiler.h>\n"); buf_printf(b, "\n"); - buf_printf(b, "const char vermagic[]\n"); - buf_printf(b, "__attribute__((section(\"__vermagic\"))) =\n"); - buf_printf(b, "VERMAGIC_STRING;\n"); + buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); } /* Record CRCs for unresolved symbols */ |
