debugedit: Fix 'Unhandled relocation 0 in .debug_info section' on e2k
Fix parsing Elbrus ELFs. brp-debuginfo error: /usr/lib/rpm/debugedit: ./lib/modules/5.4.58-elbrus-def-alt1.5.2/misc/xt_so.ko: Unhandled relocation 0 in .debug_info section Reported-by: Michael Shigorin <mike@altlinux.org> Tested-by: Andrey Savchenko <bircoph@altlinux.org>
This commit is contained in:
parent
a2370b4983
commit
bb0b76e759
@ -599,6 +599,12 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype)
|
||||
if (rtype != R_RISCV_32)
|
||||
goto fail;
|
||||
break;
|
||||
#endif
|
||||
#if defined(EM_MCST_ELBRUS) && defined(R_E2K_32_ABS)
|
||||
case EM_MCST_ELBRUS:
|
||||
if (rtype != R_E2K_32_ABS)
|
||||
goto fail;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
fail:
|
||||
|
Loading…
Reference in New Issue
Block a user