diff options
author | Christopher Ferris <cferris@google.com> | 2014-09-09 13:55:13 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-09-10 11:05:45 -0700 |
commit | 194321c7f3300ce0d6e5efea8ad77115c7038d35 (patch) | |
tree | 929136a459106b3f67379a146aab6697ae7bc7c1 /runtime/arch | |
parent | e1a851c161db964e42be642c6db470e289100f40 (diff) | |
download | art-194321c7f3300ce0d6e5efea8ad77115c7038d35.zip art-194321c7f3300ce0d6e5efea8ad77115c7038d35.tar.gz art-194321c7f3300ce0d6e5efea8ad77115c7038d35.tar.bz2 |
Add proper cfi directives.
This function has a mix of arm and cfi directives. Since our unwinders
can work with both, remove the arm directives and fix the cfi directives.
Bug: 17392751
(cherry picked from commit 7fae7c40e62ffe669fc224c57ed530b4d9c8da2c)
Change-Id: I82a84db47ffa283f9e392d24de9a8c9958a59631
Diffstat (limited to 'runtime/arch')
-rw-r--r-- | runtime/arch/arm/jni_entrypoints_arm.S | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/runtime/arch/arm/jni_entrypoints_arm.S b/runtime/arch/arm/jni_entrypoints_arm.S index 1be34ba..0e00f34 100644 --- a/runtime/arch/arm/jni_entrypoints_arm.S +++ b/runtime/arch/arm/jni_entrypoints_arm.S @@ -22,11 +22,13 @@ .extern artFindNativeMethod ENTRY art_jni_dlsym_lookup_stub push {r0, r1, r2, r3, lr} @ spill regs - .save {r0, r1, r2, r3, lr} - .pad #20 .cfi_adjust_cfa_offset 20 + .cfi_rel_offset r0, 0 + .cfi_rel_offset r1, 4 + .cfi_rel_offset r2, 8 + .cfi_rel_offset r3, 12 + .cfi_rel_offset lr, 16 sub sp, #12 @ pad stack pointer to align frame - .pad #12 .cfi_adjust_cfa_offset 12 blx artFindNativeMethod mov r12, r0 @ save result in r12 @@ -35,9 +37,12 @@ ENTRY art_jni_dlsym_lookup_stub cbz r0, 1f @ is method code null? pop {r0, r1, r2, r3, lr} @ restore regs .cfi_adjust_cfa_offset -20 + .cfi_restore r0 + .cfi_restore r1 + .cfi_restore r2 + .cfi_restore r3 + .cfi_restore lr bx r12 @ if non-null, tail call to method's code 1: - .cfi_adjust_cfa_offset 20 pop {r0, r1, r2, r3, pc} @ restore regs and return to caller to handle exception - .cfi_adjust_cfa_offset -20 END art_jni_dlsym_lookup_stub |