lkml.org 
[lkml]   [2007]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 13/33] kbuild: suppress modpost warnings for references from the .toc section as used by powerpc
    Date
    From: Stephen Rothwell <sfr@canb.auug.org.au>

    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>
    ---
    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 256b3d2..fa33a6b 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.0.6
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-07-17 16:21    [W:0.020 / U:33.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site