X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=src%2Fstdlib%2F__stop_progexec__.S;fp=src%2Fstdlib%2F__stop_progexec__.S;h=da4999e6bf6703c413cd8831a2957794db56ff9d;hb=6f720ff00773571c2fa2d35e67bff68547617639;hp=0000000000000000000000000000000000000000;hpb=807b2dd5b7365eb87b482197af3b4a3f520c14f7;p=msp430-libc.git diff --git a/src/stdlib/__stop_progexec__.S b/src/stdlib/__stop_progexec__.S new file mode 100644 index 0000000..da4999e --- /dev/null +++ b/src/stdlib/__stop_progexec__.S @@ -0,0 +1,26 @@ +/***************************************************************** + * return from main. + * can be overwriten by user function with the same name + *****************************************************************/ + .section .fini9, "ax", @progbits + + .weak __stop_progExec__ + .func __stop_progExec__ + +__stop_progExec__: + + .endfunc + +/***************************************************************** + * endless loop + * can be overwriten by user together with __stop_progExec__ + * this function always linked together with __stop_progExec__, + * because both are located in single source file. + *****************************************************************/ + .section .fini0, "ax", @progbits + + .func _endless_loop__ +_endless_loop__: + jmp _endless_loop__ + + .endfunc