From faed6cf52efbf9acfd5049f2c9e5d38a5dd62dc7 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Sat, 9 May 2009 18:03:37 +0900 Subject: [PATCH] --- yaml --- r: 146760 b: refs/heads/master c: 7cd0378ef4c0d7b05e7dcb1daa115b841ffdc31a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/sh/kernel/module.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 2e002bb916cf..3e538e167202 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1031a3a57ed76f5cb8754a89ddb22f3d9ebe8861 +refs/heads/master: 7cd0378ef4c0d7b05e7dcb1daa115b841ffdc31a diff --git a/trunk/arch/sh/kernel/module.c b/trunk/arch/sh/kernel/module.c index c43081039dd5..c19b0f7d2cc1 100644 --- a/trunk/arch/sh/kernel/module.c +++ b/trunk/arch/sh/kernel/module.c @@ -90,7 +90,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, * SHmedia, the LSB of the symbol needs to be asserted * for the CPU to be in SHmedia mode when it starts executing * the branch target. */ - relocation |= (sym->st_other & 4); + relocation |= !!(sym->st_other & 4); #endif switch (ELF32_R_TYPE(rel[i].r_info)) {