1 @ Preempt an ARM shared library function with a Thumb function 2 @ in the application. 3 .text 4 .p2align 4 5 .globl _start 6 _start: 7 mov ip, sp 8 stmdb sp!, {r11, ip, lr, pc} 9 bl lib_func1 10 ldmia sp, {r11, sp, lr} 11 bx lr 12 13 .p2align 4 14 .globl app_func2 15 .type app_func2,%function 16 app_func2: 17 bx lr 18 19 .p2align 4 20 .globl lib_func1 21 .type lib_func1,%function 22 .thumb_func 23 lib_func1: 24 bx lr 25 26 .data 27 .long data_obj 28