diff options
Diffstat (limited to 'scripts/mod/sumversion.c')
-rw-r--r-- | scripts/mod/sumversion.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c index d587f40f1117..760e6baa7eda 100644 --- a/scripts/mod/sumversion.c +++ b/scripts/mod/sumversion.c | |||
@@ -391,10 +391,14 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen) | |||
391 | struct md4_ctx md; | 391 | struct md4_ctx md; |
392 | char *fname; | 392 | char *fname; |
393 | char filelist[PATH_MAX + 1]; | 393 | char filelist[PATH_MAX + 1]; |
394 | int postfix_len = 1; | ||
395 | |||
396 | if (strends(modname, ".lto.o")) | ||
397 | postfix_len = 5; | ||
394 | 398 | ||
395 | /* objects for a module are listed in the first line of *.mod file. */ | 399 | /* objects for a module are listed in the first line of *.mod file. */ |
396 | snprintf(filelist, sizeof(filelist), "%.*smod", | 400 | snprintf(filelist, sizeof(filelist), "%.*smod", |
397 | (int)strlen(modname) - 1, modname); | 401 | (int)strlen(modname) - postfix_len, modname); |
398 | 402 | ||
399 | buf = read_text_file(filelist); | 403 | buf = read_text_file(filelist); |
400 | 404 | ||