Commit graph

10 commits

Author SHA1 Message Date
مصطفي محمود كمال الدين
8d459b218d
librz/bin: fix patching relocations for RISC-V ELFs
* fix unused return value in patch_relocs_riscv and unreachable code in extension parser
2026-02-26 12:17:03 +08:00
مصطفي محمود كمال الدين
158765163a
librz/arch: rewrite the RISC-V support to use Capstone (#5482)
* remove GNU plugin and remove the pseudo-assembly test
* modernize Capstone-based RISC-V plugin and add huge test coverage
2026-02-17 03:35:37 +08:00
AppleMangoOrange
e380a4489a
librz/bin: add relocations for AVR (#5790)
* Add relocation conversion for AVR
* Add relocation patching for AVR
* Add tests for AVR relocation
2026-02-06 21:55:22 +08:00
Anton Kochkov
6cacb99e98 hppa: use capstone disassembler 2026-02-01 18:23:12 +08:00
well-mannered-goat
5d688d799a
bin/elf: improve x86 family relocations handling (#5752)
* Patch more x86 relocations
* Add tests for x86 relocations
* Add handling and patching for more x86_64 relocations
2026-01-16 11:50:47 +08:00
well-mannered-goat
5733f0509a
librz/bin/elf: fix and add new ARM32 relocations (#5455) 2026-01-03 20:22:37 +08:00
jaredbee
77c63ce77c
Handle R_AARCH64_TLSDESC without emitting an error (#5612)
This removes the "unimplemented" error message when encountering this particular relocation type.  R_AARCH64_TLSDESC is handled by the dynamic linker; we intentionally do very little to handle it.

Co-authored-by: Jared B <JaredB@invalid.invalid>
2025-12-19 15:18:57 +00:00
billow
7a77b8f7bd
linter: update clang-format installation to version 20 (#5451)
* fix: format with clang-format-20
* fix: fix clang-format linter with rewrite '^#define.*/\*.*\\$'
* fix: update clang-format to version 20 in workflows and documentation
* fix: add SPDX license information to .git-blame-ignore-revs
2025-10-12 08:02:03 +08:00
Rot127
9c0fe61dac Implement Sparc relocation patching and conversion. 2025-08-25 23:05:58 +08:00
Giovanni
ca70341f2b
Refactor and improvements on ELF relocations (#5187)
* Move ARM32 reloc patching into a function

* Move ARM64 reloc patching into a function

* Move PPC64 reloc patching into a function

* Add missing NONE relocs for various archs

* Move Intel 80386 reloc patching into a function

* Move amd64 reloc patching into a function

* Move rx reloc patching into a function

* Move alpha reloc patching into a function

* Handle reloc RZ_X86_64_COPY for amd64

* Move intel 80386 reloc convert into a function

* Move amd64 reloc convert into a function

* Move arm reloc convert into a function

* Move riscv reloc convert into a function

* Move aarch64 reloc convert into a function

* Move ppc reloc convert into a function

* Move mips reloc convert into a function

* Move rx reloc convert into a function

* Move alpha reloc convert into a function

* Move hexagon reloc convert into a function

* Fix wrong rename on ELF format

* Handle reloc R_MIPS_HI16 & R_MIPS_LO16

* Minimal handling of micromips relocs

* Add nanomips initial support for reloc convert

* Minimal handling of intel 80386 missing relocs

* Minimal handling of amd64 missing relocs

* Minimal handling of arm missing relocs

* Minimal handling of riscv missing relocs

* Minimal handling of aarch64 missing relocs

* Minimal handling of ppc missing relocs

* Minimal handling of ppc64 relocs

* Split reloc patching & conv from bin_elf.inc

* Split aarch64 from arm32 in elf_imports.c
2025-06-08 17:46:45 +08:00