mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Use proper UPX types.
This commit is contained in:
parent
5da6a27e6b
commit
cdd58cf757
|
@ -614,8 +614,8 @@ void ElfLinkerARM64::relocate1(const Relocation *rel, upx_byte *location, upx_ui
|
|||
}
|
||||
else if (!strcmp(type, "CONDBR19")) {
|
||||
value -= rel->section->offset + rel->offset;
|
||||
uint32_t const m19 = ~(~0u << 19);
|
||||
uint32_t w = get_le32(location);
|
||||
upx_uint32_t const m19 = ~(~0u << 19);
|
||||
upx_uint32_t w = get_le32(location);
|
||||
set_le32(location, (w &~(m19<<5)) | ((((w>>5) + (value>>2)) & m19) << 5) );
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user