Subject: [PATCH 06/19] kbuild: suppress modpost warnings for references from
the .toc section as used by powerpc
From: Stephen Rothwell <[EMAIL PROTECTED]>
Date: Thu, 24 May 2007 14:16:13 +1000
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 <[EMAIL PROTECTED]>
Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
---
scripts/mod/modpost.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 760b2b3..f6bae03 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,
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.rc3.1544.g8a923
----- End forwarded message -----
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kbuild-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel