Commit e63233f7 authored by John Reiser's avatar John Reiser Committed by Steven Rostedt

ftrace: Have recordmcount honor endianness in fn_ELF_R_INFO

It looks to me like the change which introduced "virtual functions"
forgot about cross-platform endianness.

Thank you to Arnaud for supplying before+after data files do_mounts*.o.

This fixes a MIPS build failure triggered by recordmcount.
Reported-by: default avatarArnaud Lacombe <lacombar@gmail.com>
Tested-by: default avatarArnaud Lacombe <lacombar@gmail.com>
Acked-by: default avatarWu Zhangjin <wuzhangjin@gmail.com>
Acked-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarJohn Reiser <jreiser@BitWagon.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 15664125
...@@ -119,7 +119,7 @@ static uint_t (*Elf_r_sym)(Elf_Rel const *rp) = fn_ELF_R_SYM; ...@@ -119,7 +119,7 @@ static uint_t (*Elf_r_sym)(Elf_Rel const *rp) = fn_ELF_R_SYM;
static void fn_ELF_R_INFO(Elf_Rel *const rp, unsigned sym, unsigned type) static void fn_ELF_R_INFO(Elf_Rel *const rp, unsigned sym, unsigned type)
{ {
rp->r_info = ELF_R_INFO(sym, type); rp->r_info = _w(ELF_R_INFO(sym, type));
} }
static void (*Elf_r_info)(Elf_Rel *const rp, unsigned sym, unsigned type) = fn_ELF_R_INFO; static void (*Elf_r_info)(Elf_Rel *const rp, unsigned sym, unsigned type) = fn_ELF_R_INFO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment