projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1031a3a
)
sh: Fix up SHmedia module ELF relocations.
author
Paul Mundt
<lethal@linux-sh.org>
Sat, 9 May 2009 09:03:37 +0000
(18:03 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Sat, 9 May 2009 09:03:37 +0000
(18:03 +0900)
This fixes up the LSB setting for SHmedia branching in updated symbols
when processing module relocations.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/module.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/module.c
b/arch/sh/kernel/module.c
index c43081039dd571ab3992628830d5cd171a3d23fd..c19b0f7d2cc13a100aaeecd24b420eeaff30c32f 100644
(file)
--- a/
arch/sh/kernel/module.c
+++ b/
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)) {