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

Restore -mtpcs-frame flag and behavior #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StanHash
Copy link
Contributor

This restores the -m(no-)tpcs-frame and -m(no-)tpcs-leaf-frame flags and their associated behaviors, which were presumably removed from agbcc early on.

When enabled, these have the effect of producing extended function prologue and epilogues like this:

sub     sp, sp, #16     @ Create stack backtrace structure
push    {..., lr}
add     r3, sp, #20
str     r3, [sp, #8]
mov     r3, pc
str     r3, [sp, #16]
mov     r3, fp
str     r3, [sp, #4]
mov     r3, lr
str     r3, [sp, #12]
add     r3, sp, #16
mov     fp, r3          @ Backtrace structure created
@ ...
pop     {...}
pop     {r0, r1, r2}
mov     fp, r1
mov     sp, r2
bx      r0

This is known to be required to match exactly main.c in fe6, fe7 and related projects.

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