12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #include <sysdep.h>
- __asm__ (
- " .globl _Unwind_Resume\n"
- " .hidden _Unwind_Resume\n"
- " .type _Unwind_Resume, %function\n"
- "_Unwind_Resume:\n"
- " " CFI_SECTIONS (.debug_frame) "\n"
- " " CFI_STARTPROC "\n"
- " stmfd sp!, {r4, r5, r6, lr}\n"
- " " CFI_ADJUST_CFA_OFFSET (16)" \n"
- " " CFI_REL_OFFSET (r4, 0) "\n"
- " " CFI_REL_OFFSET (r5, 4) "\n"
- " " CFI_REL_OFFSET (r6, 8) "\n"
- " " CFI_REL_OFFSET (lr, 12) "\n"
- " " CFI_REMEMBER_STATE "\n"
- " ldr r4, 1f\n"
- " ldr r5, 2f\n"
- "3: add r4, pc, r4\n"
- " ldr r3, [r4, r5]\n"
- " mov r6, r0\n"
- " cmp r3, #0\n"
- " beq 4f\n"
- "5: mov r0, r6\n"
- " ldmfd sp!, {r4, r5, r6, lr}\n"
- " " CFI_ADJUST_CFA_OFFSET (-16) "\n"
- " " CFI_RESTORE (r4) "\n"
- " " CFI_RESTORE (r5) "\n"
- " " CFI_RESTORE (r6) "\n"
- " " CFI_RESTORE (lr) "\n"
- " bx r3\n"
- " " CFI_RESTORE_STATE "\n"
- "4: bl __libgcc_s_init\n"
- " ldr r3, [r4, r5]\n"
- " b 5b\n"
- " " CFI_ENDPROC "\n"
- " .align 2\n"
- #ifdef __thumb2__
- "1: .word _GLOBAL_OFFSET_TABLE_ - 3b - 4\n"
- #else
- "1: .word _GLOBAL_OFFSET_TABLE_ - 3b - 8\n"
- #endif
- "2: .word __libgcc_s_resume(GOTOFF)\n"
- " .size _Unwind_Resume, .-_Unwind_Resume\n"
- );
|