Skip to content

handle consecutive PC-relative instructions#1

Merged
neobenedict merged 4 commits into
rayshift:masterfrom
segfault-bilibili:20230706-fix-consecutive-ldr
May 18, 2024
Merged

handle consecutive PC-relative instructions#1
neobenedict merged 4 commits into
rayshift:masterfrom
segfault-bilibili:20230706-fix-consecutive-ldr

Conversation

@segfault-bilibili

Copy link
Copy Markdown

@segfault-bilibili segfault-bilibili marked this pull request as ready for review July 7, 2023 17:11
@segfault-bilibili segfault-bilibili force-pushed the 20230706-fix-consecutive-ldr branch from 2c11987 to 3018448 Compare July 9, 2023 09:10
@segfault-bilibili segfault-bilibili force-pushed the 20230706-fix-consecutive-ldr branch from 3018448 to b172225 Compare July 11, 2023 12:19
change Rn to something else than pc, fill it with value of origin pc

example1:
     ldr r0, [pc, jmpews#4]
     ldr r0, [pc, r0]  ; <- we are here
     bx lr
     dcd vmaddr_offset_relative_to_pc

example2:
     ldr r1, [pc, jmpews#8]
     add r1, pc, r1    ; <- we are here
     str r0, [r1]
     bx lr
     dcd vmaddr_offset_relative_to_pc
@segfault-bilibili segfault-bilibili force-pushed the 20230706-fix-consecutive-ldr branch from b172225 to d26837f Compare July 18, 2023 11:04
@segfault-bilibili

Copy link
Copy Markdown
Author

@neobenedict

@neobenedict neobenedict merged commit 3aab7cb into rayshift:master May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants