HomePhabricator

[PPC64][libunwind] Fix r2 not properly restored

Authored by mstorsjo on May 15 2019, 11:49 PM.

Description

[PPC64][libunwind] Fix r2 not properly restored

This change makes each unwind step inspect the instruction at the
return address and, if needed, read r2 from its saved location and
modify the context appropriately.

The unwind logic is able to handle both ELFv1 and ELFv2 stacks.

Reported by Bug 41050

Patch by Leandro Lupori!

Differential Revision: https://reviews.llvm.org/D59694

llvm-svn: 360861

Details

Committed
mstorsjoMay 15 2019, 11:49 PM
Differential Revision
D59694: [PPC64][libunwind] Fix r2 not properly restored
Parents
rGec895f11cee1: [llvm-readobj] - Revert r360676 partially. NFC.
Branches
Unknown
Tags
Unknown