diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 07:03:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 07:03:57 +0000 |
commit | bbb8bf360e021020c605468074f7f21fb72c59c3 (patch) | |
tree | b42c1c0792060ea9a72a162fd624126f8aecd08c /libc/sysdeps | |
parent | 2505f2b570310980d1aa80fdfa242682aceaac5f (diff) |
Bug 618, Thomas Chou: update crt to new 0.9.28 uClibc style
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/nios/crt1.S (renamed from libc/sysdeps/linux/nios/crt0.S) | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/nios/crt0.S b/libc/sysdeps/linux/nios/crt1.S index bbf4ede6a..98777e831 100644 --- a/libc/sysdeps/linux/nios/crt0.S +++ b/libc/sysdeps/linux/nios/crt1.S @@ -27,7 +27,8 @@ Cambridge, MA 02139, USA. */ .type __start,@function .weak _init .weak _fini - .type __uClibc_start_main,@function + .type main,@function + .type __uClibc_main,@function .type __h_errno_location, @function .type _stdio_init, @function .type _stdio_term, @function @@ -38,15 +39,17 @@ _start: nop nop - lds %o0,[%sp, (REGWIN_SZ / 4) + 0] // main's argc - lds %o1,[%sp, (REGWIN_SZ / 4) + 1] // main's argv - lds %o2,[%sp, (REGWIN_SZ / 4) + 2] // main's envp + MOVIA %o0, main@h + lds %o1,[%sp, (REGWIN_SZ / 4) + 0] // main's argc + lds %o2,[%sp, (REGWIN_SZ / 4) + 1] // main's argv MOVIA %o3, _init@h MOVIA %o4, _fini@h - MOVIA %o5, __uClibc_start_main@h - - call %o5 + mov %o5, %i0 /* rtld_fini */ + mov %o6, %sp /* stack_end */ + MOVIA %o7, __uClibc_main@h + + call %o7 nop @@ -54,4 +57,3 @@ _start: __exit: MOVIP %g1, __NR_exit trap 63 -
\ No newline at end of file |