History

kbuild: suppress modpost warnings for references from the .toc section as used by powerpc

We should do better here by effetively "dereferencing" references to the .toc (or the .got2) section, but that is much harder.

Stephen Rothwell committed 19 years ago

Commit 1abe02f1 parent 56a974f1 file · +4 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/mod/modpost.c+4−1
@@ -870,9 +870,12 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec, · 869 unmodified lines
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 "