This is an archive of the discontinued LLVM Phabricator instance.

libunwind: Fix unw_getcontext() return value on AArch64.
ClosedPublic

Authored by logan on Jun 24 2015, 5:29 PM.

Details

Reviewers
kledzik
rengolin
Summary

unw_getcontext() should return UNW_ESUCCESS on success. However, the assembly
for AArch64 is incorrect since "ldr x0, #0" is a PC-relative load instead of an
immediate value load.

This patch should fix the problem by changing ldr to mov.

Diff Detail

Event Timeline

logan updated this revision to Diff 28429.Jun 24 2015, 5:29 PM
logan retitled this revision from to libunwind: Fix unw_getcontext() return value on AArch64..
logan updated this object.
logan edited the test plan for this revision. (Show Details)
logan added reviewers: kledzik, rengolin.
logan added a subscriber: Unknown Object (MLST).
rengolin accepted this revision.Jun 25 2015, 5:51 AM
rengolin edited edge metadata.

Ouch! LGTM. Thanks!

This revision is now accepted and ready to land.Jun 25 2015, 5:51 AM
logan closed this revision.Jun 25 2015, 8:13 AM

Hi,

Thanks for your review. Committed as rL240648.