]> git.ipfire.org Git - thirdparty/elfutils.git/commit
ppc64: Add minimal fallback unwinder.
authorMark Wielaard <mark@klomp.org>
Sun, 21 May 2017 21:33:15 +0000 (23:33 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 12 Jun 2017 18:52:13 +0000 (20:52 +0200)
commit660aafcf78818424248faccf2ccab4ac9deee582
tree7a864558f99575e004d42f7ee5da75ddfb58dab3
parent6358858c4d65e8fb12a112198ee1d4bcab0be876
ppc64: Add minimal fallback unwinder.

This adds a minimal fallback unwinder for ppc64[le] in case we cannot find
CFI for a particular address. It simply always sets the program counter to
the link register, picks the previous stack pointer from the backchain,
and the previous link register from the LR save area.

This is enough for some simple situations when we don't have CFI and
seems to work nicely in the case of perf with libdw powerpc support:
https://lkml.org/lkml/2017/5/18/998

Signed-off-by: Mark Wielaard <mark@klomp.org>
backends/ChangeLog
backends/Makefile.am
backends/ppc64_init.c
backends/ppc64_unwind.c [new file with mode: 0644]
tests/ChangeLog
tests/Makefile.am
tests/backtrace-subr.sh
tests/backtrace.ppc64le.fp.core.bz2 [new file with mode: 0644]
tests/backtrace.ppc64le.fp.exec.bz2 [new file with mode: 0755]
tests/run-backtrace-fp-core-ppc64le.sh [new file with mode: 0755]