Skip to content

Commit

Permalink
kbuild: suppress modpost warnings for references from the .toc sectio…
Browse files Browse the repository at this point in the history
…n 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>
  • Loading branch information
Stephen Rothwell authored and Sam Ravnborg committed Jul 16, 2007
1 parent 56a974f commit 1abe02f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 1abe02f

Please sign in to comment.