Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions with relocated addresses are replaced with stmdaeq #22822

Open
hikir1 opened this issue Apr 11, 2024 · 1 comment
Open

Instructions with relocated addresses are replaced with stmdaeq #22822

hikir1 opened this issue Apr 11, 2024 · 1 comment

Comments

@hikir1
Copy link

hikir1 commented Apr 11, 2024

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: ea7f035
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

@trufae trufae added the relocs label Apr 11, 2024
@hikir1 hikir1 changed the title Instructions with relocated addresses are reaplced with stmdaeq Instructions with relocated addresses are replaced with stmdaeq Apr 11, 2024
@trufae
Copy link
Collaborator

trufae commented Apr 29, 2024

looks like R_ARM_CALL relocs that point outside the GOT table are not working well. working on that in this pr #22877

@trufae trufae added this to the 5.9.2 - neatrunner milestone Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants