Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'objtool-urgent-2021-05-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull objtool fixes from Ingo Molnar:
"Fix a couple of endianness bugs that crept in"

* tag 'objtool-urgent-2021-05-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
objtool/x86: Fix elf_add_alternative() endianness
objtool: Fix elf_create_undef_symbol() endianness

+3 -1
+2 -1
tools/objtool/arch/x86/decode.c
··· 19 19 #include <objtool/elf.h> 20 20 #include <objtool/arch.h> 21 21 #include <objtool/warn.h> 22 + #include <objtool/endianness.h> 22 23 #include <arch/elf.h> 23 24 24 25 static int is_x86_64(const struct elf *elf) ··· 726 725 return -1; 727 726 } 728 727 729 - alt->cpuid = cpuid; 728 + alt->cpuid = bswap_if_needed(cpuid); 730 729 alt->instrlen = orig_len; 731 730 alt->replacementlen = repl_len; 732 731
+1
tools/objtool/elf.c
··· 762 762 data->d_buf = &sym->sym; 763 763 data->d_size = sizeof(sym->sym); 764 764 data->d_align = 1; 765 + data->d_type = ELF_T_SYM; 765 766 766 767 sym->idx = symtab->len / sizeof(sym->sym); 767 768