Skip to content

[TPDE] fix LDR with large offset on ARM#43

Open
ingoneuse wants to merge 1 commit into
tpde2:masterfrom
ingoneuse:master
Open

[TPDE] fix LDR with large offset on ARM#43
ingoneuse wants to merge 1 commit into
tpde2:masterfrom
ingoneuse:master

Conversation

@ingoneuse
Copy link
Copy Markdown

When thousands of arguments are passed to a function, the argument offset can exceed the 12 bit immediate of the LDR instruction. This fixes the issue with an additional ADD instruction, that increases the base address. After the fix, argument area size is limited to 16 MiB = 2^24 B.

When thousands of arguments are passed to a function, the argument offset can exceed the 12 bit immediate of the LDR instruction. This fixes the issue with an additional ADD instruction, that increases the base address. After the fix, argument area size is limited to 16 MiB = 2^24 B.
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.

1 participant