linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH] depmod: Ignore PowerPC64 ABIv2 .TOC. symbol
@ 2016-03-03  8:30 Michael Ellerman
  0 siblings, 0 replies; only message in thread
From: Michael Ellerman @ 2016-03-03  8:30 UTC (permalink / raw)
  To: linux-modules
  Cc: Anton Blanchard, Alan Modra, Ulrich Weigand, lucas.de.marchi

From: Anton Blanchard <anton@samba.org>

The .TOC. symbol on the PowerPC64 ABIv2 identifies the GOT
pointer, similar to how other architectures use _GLOBAL_OFFSET_TABLE_.

This is not a symbol that needs relocation, and should be ignored
by depmod.

---
 tools/depmod.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/depmod.c b/tools/depmod.c
index 6e9bb4d..a2e07c1 100644
--- a/tools/depmod.c
+++ b/tools/depmod.c
@@ -2153,6 +2153,8 @@ static void depmod_add_fake_syms(struct depmod *depmod)
 	depmod_symbol_add(depmod, "__this_module", true, 0, NULL);
 	/* On S390, this is faked up too */
 	depmod_symbol_add(depmod, "_GLOBAL_OFFSET_TABLE_", true, 0, NULL);
+	/* On PowerPC64 ABIv2, .TOC. is more or less _GLOBAL_OFFSET_TABLE_ */
+	depmod_symbol_add(depmod, "TOC.", true, 0, NULL);
 }
 
 static int depmod_load_symvers(struct depmod *depmod, const char *filename)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-03  8:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-03  8:30 [RESEND PATCH] depmod: Ignore PowerPC64 ABIv2 .TOC. symbol Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).