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/mod (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
870870 return;
871871
872872 /* 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 */
874875 if (strcmp(fromsec, ".got2") == 0)
875876 return;
877+ if (strcmp(fromsec, ".toc") == 0)
878+ return;
876879
877880 if (before && after) {
878881 warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s "