mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-27 13:31:32 +08:00
Fix tricore relocation 24REL handling
This commit is contained in:
committed by
Ryan Kurtz
parent
45552147ec
commit
334eecbd16
+1
-2
@@ -355,8 +355,7 @@ public class Tricore_ElfRelocationHandler
|
|||||||
*/
|
*/
|
||||||
private int relocate_relB(Memory memory, Address relocationAddress, long rv)
|
private int relocate_relB(Memory memory, Address relocationAddress, long rv)
|
||||||
throws MemoryAccessException {
|
throws MemoryAccessException {
|
||||||
// TODO ff000000..00fffffe?
|
long mask = 0x00000001L;
|
||||||
long mask = 0xfffffffeL;
|
|
||||||
long val = ~mask & rv;
|
long val = ~mask & rv;
|
||||||
int iw = memory.getInt(relocationAddress) & 0xff;
|
int iw = memory.getInt(relocationAddress) & 0xff;
|
||||||
iw |= ((val & 0x1fffe) << 15);
|
iw |= ((val & 0x1fffe) << 15);
|
||||||
|
|||||||
Reference in New Issue
Block a user