summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2016-06-10 15:24:30 +1000
committerLucas De Marchi <lucas.demarchi@intel.com>2016-06-11 00:27:39 -0300
commitd46136bb59c46609ee8050636f0681f2831d2225 (patch)
tree57a98c24f7d17e51095b77f3235795c91bbe20c4
parentf7ed430a53cdb0dd8ff99338b48bf640c18d8004 (diff)
downloadkmod-d46136bb59c4.tar.gz
kmod-d46136bb59c4.zip
depmod: Ignore PowerPC64 ABIv2 .TOC. symbol
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.
-rw-r--r--tools/depmod.c2
1 files changed, 2 insertions, 0 deletions
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)