aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 256b3d272e2e..fa33a6b92a9d 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -870,9 +870,12 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec,
870 return; 870 return;
871 871
872 /* fromsec whitelist - without a valid 'before' 872 /* fromsec whitelist - without a valid 'before'
873 * powerpc has a GOT table in .got2 section */ 873 * powerpc has a GOT table in .got2 section
874 * and also a .toc section */
874 if (strcmp(fromsec, ".got2") == 0) 875 if (strcmp(fromsec, ".got2") == 0)
875 return; 876 return;
877 if (strcmp(fromsec, ".toc") == 0)
878 return;
876 879
877 if (before && after) { 880 if (before && after) {
878 warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s " 881 warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s "