diff options
| author | John van Groningen | 2003-05-06 11:13:31 +0000 |
|---|---|---|
| committer | John van Groningen | 2003-05-06 11:13:31 +0000 |
| commit | 85414cb1916d02bea79ee806faf953eccd0db9ca (patch) | |
| tree | 1601a5f9c0eb8c581a3cddafa37e9c9973bcb2f4 | |
| parent | Standard project directories initialized by cvs2svn. (diff) | |
no message
| -rw-r--r-- | crt.s | 34 | ||||
| -rw-r--r-- | crti.s | 11 | ||||
| -rw-r--r-- | crtn.s | 8 |
3 files changed, 53 insertions, 0 deletions
@@ -0,0 +1,34 @@ + + .seg ".text" + + .global _start + +_start: + clr %fp + + orcc 0,%g1,%o0 + be no_atexit + sub %sp,32,%sp + + call atexit + nop + +no_atexit: + sethi %hi _fini,%o0 + call _init + or %o0,%lo _fini,%o0 + + ld [%sp+32+64],%o0 + add 32+68,%sp,%o1 + sll %o0,2,%o2 + inc 4,%o2 + set _environ,%o3 + call main + add %o1,%o2,%o2 + + call exit + nop + + call _exit + nop + @@ -0,0 +1,11 @@ + .seg ".init" + .globl _init + .type _init,#function +_init: + save %sp,-96,%sp + + .seg ".fini" + .globl _fini + .type _fini,#function +_fini: + save %sp,-96,%sp @@ -0,0 +1,8 @@ + .seg ".init" + ret + restore + + .seg ".fini" + ret + restore + |
