Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1abe02fe authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Sam Ravnborg
Browse files

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 56a974fa
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 "