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

failed to devirtualize the indirect jump (arm/switch-ldrls.S#L10) #31

Open
Zhiwuyazhe1 opened this issue Oct 1, 2024 · 1 comment
Open

Comments

@Zhiwuyazhe1
Copy link

The assembly code is as follows:

9838:       e359000a        cmp     r9, #10
983c:       979ff109        ldrls   pc, [pc, r9, lsl #2]
9840:       ea0005cc        b       af78 <__cxa_atexit@plt+0x2218>
9844:       00009d0c        andeq   r9, r0, ip, lsl #26

The revng export results are as follows:
revng artifact --resume=temp --analyses-list=revng-initial-auto-analysis emit-cfg yes.strip

Entry:           "0x9804:Code_arm"
Blocks:
  - ID:              "0x9834:Code_arm"
    End:             "0x9840:Code_arm"
    Successors:
      - Kind:            FunctionEdge
        Type:            LongJmp
      - Destination:     "0x9840:Code_arm"
        Kind:            FunctionEdge
        Type:            DirectBranch

the indirect jump is like https://github.com/revng/revng-qa/blob/master/share/revng/test/tests/analysis/CollectCFG/arm/switch-ldrls.S#L10 , but it can't be catched in this example.

I will provide binary and expected results in attach files.

@Zhiwuyazhe1
Copy link
Author

temp.tar.gz

@Zhiwuyazhe1 Zhiwuyazhe1 changed the title failed to devirtualize the indirect jump failed to devirtualize the indirect jump (arm/switch-ldrls.S#L10) Oct 1, 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

No branches or pull requests

1 participant