Skip to content

PPC Switch Case identification #4015

@sprout42

Description

@sprout42

I'm looking at some PPC code that has a curious location-agnostic switch case style using the link register that seems to prevent correct detection and identification of the switch

bl <next instruction>
slwi r11, r26, 2
mflr r12
addi r11, r11, 0x18
add r11, r11, r12
mtctr r11
bctr
<table of branch instructions>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: PowerPCIssues with the PowerPC architecture pluginComponent: ArchitectureIssue needs changes to an architecture pluginComponent: CoreIssue needs changes to the coreEffort: MediumIssue should take < 1 monthImpact: MediumIssue is impactful with a bad, or no, workaround

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions