History

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.

John Reiser committed 15 years ago

Commit e63233f1 parent 15664121 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/recordmcount.h+1−1
@@ -119,7 +119,7 @@ static uint_t (*Elf_r_sym)(Elf_Rel const *rp) = fn_ELF_R_SYM; · 118 unmodified lines
119119
120120 static void fn_ELF_R_INFO(Elf_Rel *const rp, unsigned sym, unsigned type)
121121 {
122− rp->r_info = ELF_R_INFO(sym, type);
122+ rp->r_info = _w(ELF_R_INFO(sym, type));
123123 }
124124 static void (*Elf_r_info)(Elf_Rel *const rp, unsigned sym, unsigned type) = fn_ELF_R_INFO;
125125