mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
libdyld: handle unaligned relocations.
This commit is contained in:
parent
8a0beb4cfb
commit
10773db08d
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue