radare2 icon indicating copy to clipboard operation
radare2 copied to clipboard

Instructions with relocated addresses are replaced with stmdaeq

Open hikir1 opened this issue 10 months ago • 1 comments

Environment

Thu 11 Apr 2024 10:18:56 AM EDT radare2 5.8.8 1 @ linux-x86-64 birth: git.5.8.8 2023-06-08__14:00:41 commit: ea7f0356519884715cf1d5fba16042bac72b2df5 options: gpl -O1 cs:5 cl:0 make Linux x86_64

Description

Running r2 with -e bin.cache=true on a 32 bit ARM kernel module replaces instructions referencing relocated addresses with stmdaeq

r2-bug

Test

run r2 -e bin.cache=true on the following kernel module, after unzipping:

media_clock.ko.zip

hikir1 avatar Apr 11 '24 15:04 hikir1

looks like R_ARM_CALL relocs that point outside the GOT table are not working well. working on that in this pr https://github.com/radareorg/radare2/pull/22877

trufae avatar Apr 29 '24 10:04 trufae