diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/modpost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 757294b4f322..508c5895c680 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -721,7 +721,7 @@ static int check_section(const char *modname, const char *sec) | |||
721 | /* consume all digits */ | 721 | /* consume all digits */ |
722 | while (*e && e != sec && isdigit(*e)) | 722 | while (*e && e != sec && isdigit(*e)) |
723 | e--; | 723 | e--; |
724 | if (*e == '.') { | 724 | if (*e == '.' && !strstr(sec, ".linkonce")) { |
725 | warn("%s (%s): unexpected section name.\n" | 725 | warn("%s (%s): unexpected section name.\n" |
726 | "The (.[number]+) following section name are " | 726 | "The (.[number]+) following section name are " |
727 | "ld generated and not expected.\n" | 727 | "ld generated and not expected.\n" |