We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c7405 commit f66c05dCopy full SHA for f66c05d
tools/objtool/arch/x86/decode.c
@@ -19,6 +19,7 @@
19
#include <objtool/elf.h>
20
#include <objtool/arch.h>
21
#include <objtool/warn.h>
22
+#include <objtool/endianness.h>
23
#include <arch/elf.h>
24
25
static int is_x86_64(const struct elf *elf)
@@ -725,7 +726,7 @@ static int elf_add_alternative(struct elf *elf,
725
726
return -1;
727
}
728
- alt->cpuid = cpuid;
729
+ alt->cpuid = bswap_if_needed(cpuid);
730
alt->instrlen = orig_len;
731
alt->replacementlen = repl_len;
732
0 commit comments