forked from Imagelibrary/rtems
cpukit/libdl/aarch64: Improve debug output
This commit is contained in:
committed by
Chris Johns
parent
f094427708
commit
2c03b41fdc
@@ -419,9 +419,6 @@ rtems_rtl_elf_reloc_rela (rtems_rtl_obj* obj,
|
||||
|
||||
raddr = (Elf_Addr)symvalue + rela->r_addend;
|
||||
target = raddr - (uintptr_t)where;
|
||||
if (checkalign(target, 4, where, off)) {
|
||||
return rtems_rtl_elf_rel_failure;
|
||||
}
|
||||
|
||||
if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
|
||||
printf (
|
||||
@@ -430,6 +427,10 @@ rtems_rtl_elf_reloc_rela (rtems_rtl_obj* obj,
|
||||
parsing
|
||||
);
|
||||
|
||||
if (checkalign(target, 4, where, off)) {
|
||||
return rtems_rtl_elf_rel_failure;
|
||||
}
|
||||
|
||||
target = (intptr_t)target >> 2;
|
||||
|
||||
if (((Elf_Sword)target > 0x1FFFFFF) || ((Elf_Sword)target < -0x2000000)) {
|
||||
|
||||
Reference in New Issue
Block a user