rizin icon indicating copy to clipboard operation
rizin copied to clipboard

Add missing relocation types & architectures for ELF

Open Roeegg2 opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. The code under file librz/bin/p/bin_elf.inc function reloc_convert which takes care of moving data from RzBinElfReloc to the general RzBinReloc doesn't take care of some relocation architectures (CRIS, Nios II, HPPA, and many more) and as well misses many relocation types in all of the currently implemented relocations

Describe the solution you'd like Simply adding switches/cases to reloc_convert take of these architectures/types

Describe alternatives you've considered N/A

Additional context N/A

Roeegg2 avatar Nov 03 '24 20:11 Roeegg2

Same thing for patch_reloc. A lot types and archs aren't handled there

Roeegg2 avatar Nov 04 '24 11:11 Roeegg2

HPPA will be covered by https://github.com/rizinorg/rizin/pull/4469

XVilka avatar Nov 04 '24 14:11 XVilka

We need to add the missing architectures and types in COFF as well... Maybe we should just unite them into one issue? Both shouldn't take very long and aren't very hard to fix.

Roeegg2 avatar Nov 05 '24 03:11 Roeegg2

Assign this issue to me.

themadbit avatar Mar 01 '25 09:03 themadbit