Explain why we aren't using memcpy().

Reported by:	jmg
X-MFC with:	r337715
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2018-08-14 14:50:06 +00:00
parent 845800e190
commit 27f4c235ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337758

View File

@ -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;