提交 1abe02fe 编写于 作者: S Stephen Rothwell 提交者: Sam Ravnborg

kbuild: suppress modpost warnings for references from the .toc section 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: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 56a974fa
......@@ -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 "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册