aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-05-24 00:16:13 -0400
committerSam Ravnborg <sam@ravnborg.org>2007-07-16 16:40:22 -0400
commit1abe02fef95366208c264635a886785d18fd38bb (patch)
treed59985ef79587a8773ddc1818e261cd823789a05
parent56a974fa2d595fe6ebe433c525b8232ead539b76 (diff)
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. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-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 "