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

fixes unconditional pop with return in thumb #1449

Merged
merged 1 commit into from
Mar 23, 2022

Commits on Mar 23, 2022

  1. fixes unconditional pop with return in thumb

    Not really a bug but an ugly code generated for the unconditional pop
    instruction that involves the PC register,
    ```
    bap mc --arch=thumb --show-bil --show-insn=asm --show-mem --addr=0x1c04 -- f0 bd
    1c04: f0 bd
    pop {r4, r5, r6, r7, pc}
    {
      if (1) {
        R4 := mem[SP, el]:u32
        R5 := mem[SP + 4, el]:u32
        R6 := mem[SP + 8, el]:u32
        R7 := mem[SP + 0xC, el]:u32
        SP := SP + 0x10
        jmp (mem[SP, el]:u32)
      }
    }
    ```
    
    This change removes this bogus `if(1)`.
    ivg committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    d87a460 View commit details
    Browse the repository at this point in the history