libdyld: handle unaligned relocations.
This commit is contained in:
parent
8a0beb4cfb
commit
10773db08d
|
@ -43,7 +43,8 @@ static int fixup_rela(struct dyld_info *info, Elf32_Rela *rela,
|
|||
return 0;
|
||||
}
|
||||
|
||||
*(Elf32_Addr*)(info->base + rela->r_offset) = value;
|
||||
memcpy((Elf32_Addr*)(info->base + rela->r_offset), &value,
|
||||
sizeof(Elf32_Addr));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue