diff --git a/sys/x86/x86/ucode.c b/sys/x86/x86/ucode.c index 319debe9261f..ec1d51c625e4 100644 --- a/sys/x86/x86/ucode.c +++ b/sys/x86/x86/ucode.c @@ -344,6 +344,7 @@ ucode_load_bsp(uintptr_t free) match = loader->match(fileaddr, &len); if (match != NULL) { addr = map_ucode(free, len); + /* We can't use memcpy() before ifunc resolution. */ for (i = 0; i < len; i++) addr[i] = match[i]; match = addr;