From f009dced87f126cc38c13e63a5fbc229af628f6a Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Thu, 24 May 2007 14:16:13 +1000 Subject: [PATCH] --- yaml --- r: 61833 b: refs/heads/master c: 1abe02fef95366208c264635a886785d18fd38bb h: refs/heads/master i: 61831: bc0636dbf85d7f02581691bb14802baacd5c372c v: v3 --- [refs] | 2 +- trunk/scripts/mod/modpost.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 7569eb772978..2c09490b6bad 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 56a974fa2d595fe6ebe433c525b8232ead539b76 +refs/heads/master: 1abe02fef95366208c264635a886785d18fd38bb diff --git a/trunk/scripts/mod/modpost.c b/trunk/scripts/mod/modpost.c index 256b3d272e2e..fa33a6b92a9d 100644 --- a/trunk/scripts/mod/modpost.c +++ b/trunk/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 "