Blame SOURCES/kmod-0002-depmod-Ignore-PowerPC64-ABIv2-.TOC.-symbol.patch

87528e
From 6708fbf7d26c6241cc37614c632bba1ce4ef1a4e Mon Sep 17 00:00:00 2001
87528e
From: Tony Camuso <tcamuso@redhat.com>
87528e
Date: Fri, 24 Jun 2016 12:38:25 -0400
87528e
Subject: [RHEL-7.3 PATCH 2/3] depmod: Ignore PowerPC64 ABIv2 .TOC. symbol
87528e
87528e
Cherry-picked without conflicts from the following upstream commit.
87528e
87528e
commit d46136bb59c46609ee8050636f0681f2831d2225
87528e
Author: Anton Blanchard <anton@samba.org>
87528e
Date:   Fri Jun 10 15:24:30 2016 +1000
87528e
87528e
    depmod: Ignore PowerPC64 ABIv2 .TOC. symbol
87528e
87528e
    The .TOC. symbol on the PowerPC64 ABIv2 identifies the GOT
87528e
    pointer, similar to how other architectures use _GLOBAL_OFFSET_TABLE_.
87528e
87528e
    This is not a symbol that needs relocation, and should be ignored
87528e
    by depmod.
87528e
87528e
Signed-off-by: Tony Camuso <tcamuso@redhat.com>
87528e
---
87528e
 tools/depmod.c | 2 ++
87528e
 1 file changed, 2 insertions(+)
87528e
87528e
diff --git a/tools/depmod.c b/tools/depmod.c
87528e
index 8d5c671..7b95832 100644
87528e
--- a/tools/depmod.c
87528e
+++ b/tools/depmod.c
87528e
@@ -2149,6 +2149,8 @@ static void depmod_add_fake_syms(struct depmod *depmod)
87528e
 	depmod_symbol_add(depmod, "__this_module", true, 0, NULL);
87528e
 	/* On S390, this is faked up too */
87528e
 	depmod_symbol_add(depmod, "_GLOBAL_OFFSET_TABLE_", true, 0, NULL);
87528e
+	/* On PowerPC64 ABIv2, .TOC. is more or less _GLOBAL_OFFSET_TABLE_ */
87528e
+	depmod_symbol_add(depmod, "TOC.", true, 0, NULL);
87528e
 }
87528e
 
87528e
 static int depmod_load_symvers(struct depmod *depmod, const char *filename)
87528e
-- 
87528e
1.8.3.1
87528e