* [PATCH] [POWERPC] suppress modpost warnings for references from the .toc
@ 2007-05-24 4:16 Stephen Rothwell
0 siblings, 0 replies; only message in thread
From: Stephen Rothwell @ 2007-05-24 4:16 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: ppc-dev, Andrew Morton, paulus, LKML
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>
---
scripts/mod/modpost.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 8e5610d..fe5f89b 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -865,9 +865,12 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec,
return;
/* fromsec whitelist - without a valid 'before'
- * powerpc has a GOT table in .got2 section */
+ * powerpc has a GOT table in .got2 section
+ * and also a .toc section */
if (strcmp(fromsec, ".got2") == 0)
return;
+ if (strcmp(fromsec, ".toc") == 0)
+ return;
if (before && after) {
warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s "
--
1.5.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-24 4:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-24 4:16 [PATCH] [POWERPC] suppress modpost warnings for references from the .toc Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox